-
Notifications
You must be signed in to change notification settings - Fork 3
Use closure in PurgeOn::if #116
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
Open
Brajk19
wants to merge
30
commits into
sofascore:2.x
Choose a base branch
from
Brajk19:closure-if
base: 2.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
fd7cd4a
add optional dependency on opis/closure
Brajk19 2d2d7df
allow using closures in PurgeOn::if
Brajk19 52d9bbb
add tests
Brajk19 d889400
lint
Brajk19 9cbf895
update phpdoc
Brajk19 507b536
throw exception if using closures when target is association
Brajk19 7f51189
fix test
Brajk19 7902ebf
run tests with php 8.5
Brajk19 32d0fef
Merge branch '2.x' into closure-if
Brajk19 e70797b
add expectations for mock
Brajk19 e2381af
lint
Brajk19 ce4f53e
stan
Brajk19 be3b0d5
fix test
Brajk19 aacb9e2
cleanup
Brajk19 60314d0
debug command
Brajk19 8da47f0
fix tests
Brajk19 f80da12
Merge branch '2.x' into closure-if
Brajk19 0279411
tests
Brajk19 a5c47ae
cs/sa
Brajk19 476e8a5
Merge branch '2.x' into closure-if
Brajk19 b7a9ed6
check if opis/closure is installed
Brajk19 1d844cd
use native ReflectionFunction when validating if closure
Brajk19 01657e0
assert that closure is static and does not use outside variables
Brajk19 b609509
validate if result only for expressions
Brajk19 6662944
memoize unserialized closures
Brajk19 fb52de7
update docs
Brajk19 1286019
update changelog
Brajk19 1a52072
cs
Brajk19 1b65a29
phpstan
Brajk19 1687dee
fix test
Brajk19 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace Sofascore\PurgatoryBundle\Exception; | ||
|
|
||
| final class InvalidIfClosureException extends InvalidArgumentException | ||
| { | ||
| public function __construct( | ||
| public readonly string $routeName, | ||
| string $message, | ||
| ) { | ||
| parent::__construct("Invalid 'if' closure for route '$routeName': $message"); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will be implemented in following PR because this one is already big