-
Notifications
You must be signed in to change notification settings - Fork 35
Use Ray.Aop's _setBindings() and Bump SA tool #298
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
Changes from 21 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
f490660
Add "baseline" script to composer.json
koriym 8b88357
Add PHPStan and Psalm baselines for static analysis
koriym 0e8c15f
Refactor AOP binding logic into a dedicated method
koriym fa7111b
Update Ray/AOP dependency to ^2.x-dev
koriym f8e3738
Refactor type assertions and annotations for clarity.
koriym 559e01e
fixup! Add "baseline" script to composer.json
koriym 47fc6f4
Update dependencies in composer.lock to latest versions
koriym 63a90ea
fixup! Refactor type assertions and annotations for clarity.
koriym a9711b8
Update psalm command to disable info display
koriym 4ad4d5f
Normalize line endings in ModuleTest string assertions
koriym 5867f00
Update dependencies in tools/composer.json
koriym 590f77b
fixup! Update dependencies in tools/composer.json
koriym 005ad4d
Make classes final for better safety and immutability.
koriym 6543ac7
Remove unnecessary test directory from psalm.xml configuration.
koriym 2e18991
Soothe SA:vRefactor type checks and suppress annotations.
koriym ce7af2d
Add OS-specific requirement annotations to tests
koriym 704eba1
Make classes final in DI modules
koriym ad2cd3a
Simplify function name assignment in InjectionPoint.
koriym 9c6eeb4
Update psalm config and downgrade sebastian/diff package
koriym 75924fd
Update Ray/AOP dependency to ^2.18
koriym 3ca6587
Soothe phpstan: Fix type annotations and remove unnecessary suppressions
koriym e290e15
Remove #[Override] annotations from Argument.php
koriym 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| parameters: | ||
| ignoreErrors: | ||
| - | ||
| message: '#^Negated boolean expression is always false\.$#' | ||
| identifier: booleanNot.alwaysFalse | ||
| count: 1 | ||
| path: src/di/AnnotatedClassMethods.php |
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,33 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <files psalm-version="4.30.0@d0bc6e25d89f649e4f36a534f330f8bb4643dd69"> | ||
| <file src="src/di/AnnotatedClassMethods.php"> | ||
| <DocblockTypeContradiction occurrences="2"> | ||
| <code>! $constructor</code> | ||
| <code>$constructor</code> | ||
| </DocblockTypeContradiction> | ||
| </file> | ||
| <file src="src/di/AspectBind.php"> | ||
| <MixedArrayOffset occurrences="1"> | ||
| <code>$instantiatedBindings[$methodName]</code> | ||
| </MixedArrayOffset> | ||
| <MixedAssignment occurrences="3"> | ||
| <code>$interceptorClassName</code> | ||
| <code>$interceptorClassNames</code> | ||
| <code>$methodName</code> | ||
| </MixedAssignment> | ||
| <MixedReturnTypeCoercion occurrences="2"> | ||
| <code>$instantiatedBindings</code> | ||
| <code>array<non-empty-string, list<MethodInterceptor>></code> | ||
| </MixedReturnTypeCoercion> | ||
| </file> | ||
| <file src="src/di/Dependency.php"> | ||
| <InvalidArgument occurrences="1"> | ||
| <code>$pointcuts</code> | ||
| </InvalidArgument> | ||
| </file> | ||
| <file src="src/di/NewInstance.php"> | ||
| <InvalidArgument occurrences="1"> | ||
| <code>$this->bind->inject($container)</code> | ||
| </InvalidArgument> | ||
| </file> | ||
| </files> | ||
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 |
|---|---|---|
|
|
@@ -4,6 +4,6 @@ | |
|
|
||
| namespace Ray\Di; | ||
|
|
||
| class Exception extends \Exception | ||
| final class Exception extends \Exception | ||
| { | ||
| } | ||
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 |
|---|---|---|
|
|
@@ -4,6 +4,6 @@ | |
|
|
||
| namespace Ray\Di\Exception; | ||
|
|
||
| class Untargeted extends Unbound | ||
| final class Untargeted extends Unbound | ||
| { | ||
| } | ||
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
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.
Uh oh!
There was an error while loading. Please reload this page.