-
Notifications
You must be signed in to change notification settings - Fork 35
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
Serializable provider provider #291
Commits on Sep 7, 2024
-
Make anonymous providers serialisable
Replaced anonymous class with ProviderProvider in ProviderSetProvider. This makes it serialisable.This improves code reuse and readability by consolidating instance retrieval logic into a dedicated class.
Configuration menu - View commit details
-
Copy full SHA for 19c7eaa - Browse repository at this point
Copy the full SHA 19c7eaaView commit details -
Remove unnecessary PHPStan ignore comment
Removed a PHPStan ignore comment in the LazyTo.php file to ensure proper type checking by the static analysis tool. This change improves code quality by allowing PHPStan to enforce type checks on the `getInstance` method call.
Configuration menu - View commit details
-
Copy full SHA for e85a237 - Browse repository at this point
Copy the full SHA e85a237View commit details -
Ignore Ray_Di_* test files in PHPStan config
Added a new pattern to the PHPStan configuration to exclude all test files matching 'tests/di/Ray_Di_*'. This helps to prevent analysis of test artifacts that are irrelevant to the project's static code analysis results.
Configuration menu - View commit details
-
Copy full SHA for ad915d6 - Browse repository at this point
Copy the full SHA ad915d6View commit details -
Update PHP version in GitHub workflows to 8.3
Upgraded the PHP version from 8.1 to 8.3 in both static analysis and coding standards GitHub Action workflows. This ensures compatibility with the latest language features and improvements.
Configuration menu - View commit details
-
Copy full SHA for b9276c1 - Browse repository at this point
Copy the full SHA b9276c1View commit details -
Suppress PHPStan warning on getInstance call
The @phpstan-ignore-line comment was added to suppress a specific PHPStan warning when calling getInstance in the LazyTo class. This ensures that static analysis does not flag this line while maintaining the intended functionality.
Configuration menu - View commit details
-
Copy full SHA for 563bc0b - Browse repository at this point
Copy the full SHA 563bc0bView commit details -
Add unit test for ProviderProvider
This commit introduces a new test case in `ProviderProviderTest.php` to verify the `ProviderProvider` functionality. It ensures that the `ProviderProvider` returns an instance of `FakeEngine` when invoked with the correct binding in the injector.
Configuration menu - View commit details
-
Copy full SHA for 9fbba54 - Browse repository at this point
Copy the full SHA 9fbba54View commit details -
Change temp directory for container in VisitorTest
Updated the container instantiation in VisitorTest to use a temporary directory. This change improves test isolation by ensuring temporary files do not interfere with other tests or code.
Configuration menu - View commit details
-
Copy full SHA for fe2f5f2 - Browse repository at this point
Copy the full SHA fe2f5f2View commit details -
Rename test method and add type hint to variable
Renamed the method `testInvoke` to `testGet` to better reflect its functionality. Added a type hint for the `$set` variable to indicate it contains objects, improving code clarity and type safety.
Configuration menu - View commit details
-
Copy full SHA for 1653c07 - Browse repository at this point
Copy the full SHA 1653c07View commit details -
Refactor type annotations in ProviderProvider.
Updated the type annotations to use a generic template for better type safety and removed an unused comment in tests. This improves code readability and maintains consistency in type declarations.
Configuration menu - View commit details
-
Copy full SHA for 2c209a6 - Browse repository at this point
Copy the full SHA 2c209a6View commit details