Open asivaneswaran opened 3 years ago
@asivaneswaran can you add your test code that you're writing.. thanks 🙏
Just a classic $response->assertFieldsInclude(['email', 'telephone', 'extension']);
But it's because in AssertFields
you have protected function fieldCheck($attribute, $value = null, $method)
Which in PHP 8 is not allowed anymore. $method
needs to be nullable or $value
needs to be the last parameter.
I made a PR for the fix: https://github.com/dillingham/nova-assertions/pull/20
This PR also fixes the error for me, any chance this will be merged anytime soon?
The method
fieldCheck
has an error:PHP Fatal error: During class fetch: Uncaught ErrorException: Required parameter $method follows optional parameter $value in /Users/arasivaneswaran/Documents/repos/ccp-kin-ball-v5/vendor/dillingham/nova-assertions/src/Assert/AssertFields.php:47
protected function fieldCheck($attribute, $value = null, $method)