Skip to content

Mark Exception Classes as Final #731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 1, 2024
Merged

Mark Exception Classes as Final #731

merged 2 commits into from
Oct 1, 2024

Conversation

ghostwriter
Copy link
Contributor

This pull request addresses issue #709 by marking certain exception classes final in the src/Parsing directory.

The most important changes are as follows:

Class modifications:

  • src/Parsing/OutputException.php: Changed the OutputException class to be final.
  • src/Parsing/UnexpectedEOFException.php: Changed the UnexpectedEOFException class to be final.

Note:

  • skipped SourceException because OutputException extends SourceException
  • skipped UnexpectedTokenException because UnexpectedEOFException extends UnexpectedTokenException

Signed-off-by: Nathanael Esayeas <[email protected]>
Signed-off-by: Nathanael Esayeas <[email protected]>
@coveralls
Copy link

Coverage Status

coverage: 38.652%. remained the same
when pulling 1910278 on ghostwriter:refactor/mark-exception-classes-as-final
into 1f67618 on MyIntervals:main.

Copy link
Collaborator

@oliverklee oliverklee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thank you, @ghostwriter! ❤️

@oliverklee oliverklee merged commit 95263f2 into MyIntervals:main Oct 1, 2024
20 checks passed
@ghostwriter ghostwriter deleted the refactor/mark-exception-classes-as-final branch October 1, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants