Skip to content
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

Merged
merged 9 commits into from
Sep 10, 2024
Merged

Serializable provider provider #291

merged 9 commits into from
Sep 10, 2024

Commits on Sep 7, 2024

  1. 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.
    koriym committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    19c7eaa View commit details
    Browse the repository at this point in the history
  2. 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.
    koriym committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    e85a237 View commit details
    Browse the repository at this point in the history
  3. 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.
    koriym committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    ad915d6 View commit details
    Browse the repository at this point in the history
  4. 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.
    koriym committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    b9276c1 View commit details
    Browse the repository at this point in the history
  5. 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.
    koriym committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    563bc0b View commit details
    Browse the repository at this point in the history
  6. 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.
    koriym committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    9fbba54 View commit details
    Browse the repository at this point in the history
  7. 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.
    koriym committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    fe2f5f2 View commit details
    Browse the repository at this point in the history
  8. 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.
    koriym committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    1653c07 View commit details
    Browse the repository at this point in the history
  9. 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.
    koriym committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    2c209a6 View commit details
    Browse the repository at this point in the history