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

Declaration of Illuminate\Foundation\Testing\Assert::assertArraySubset($subset, $array, bool $checkForObjectIdentity = false, string $message = ''): void should be compatible with PHPUnit\Framework\Assert::assertArra ySubset($subset, $array, $strict = false, $message = '') #28827

Closed
xliyq opened this issue Jun 13, 2019 · 3 comments

Comments

@xliyq
Copy link

xliyq commented Jun 13, 2019

  • Laravel Version: 5.8.21
  • PHP Version: 7.1
  • Database Driver & Version: doesn't matter

Description:

Declaration of Illuminate\Foundation\Testing\Assert::assertArraySubset($subset, $array, bool $checkForObjectIdentity = false, string $message = ''): void should be compatible with PHPUnit\Framework\Assert::assertArra ySubset($subset, $array, $strict = false, $message = '')

Steps To Reproduce:

@devcircus
Copy link
Contributor

PHPUnit updated the signature to that function in version 7.4, so you must be using PHPUnit <= 7.3.5. Laravel 5.8 requires at least PHPUnit 7.5.

@xliyq
Copy link
Author

xliyq commented Jun 13, 2019

Laravel 5.8 How to solve this problem

@driesvints
Copy link
Member

Please see the reply by @devcircus and update to PHPUnit 7.5

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

No branches or pull requests

3 participants