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

[Chore] Patch tests #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

inmanturbo
Copy link

Whilst working on another PR and running phpunit, I've noticed the following error on php ^8.2:

➜ ./vendor/bin/phpunit           
PHP Fatal error:  Type of UserstampsTest::$afterApplicationCreatedCallbacks must be array (as in class Orchestra\Testbench\TestCase) in tests/UserstampsTest.php on line 11

After fixing that by type hinting array in the UserstampsTest::$afterApplicationCreatedCallbacks property, phpunit was complaining about a deprecated schema. I updated that by running ./vendor/bin/phpunit --migrate-configuration, then added the phpunit result cache to .gitignore.

After making the appropriate updates to the tests, the tests are in fact green and passing on php8.2 and php8.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant