PHP Warning when sending a non callable with array as behaviors
jrbasso opened this issue · 1 comments
jrbasso commented
It is minor, but when you send a behavior which is an array and the one of the first 2 parameters is a non-string[able] value (ie, array) it gives a PHP Warning.
Here is the portion of the code that the warning happens:
Line 195 in 554c78c
Code to test:
$this->forFeature('Abc')
// ...
->defaultBehavior(['item1', ['item2.1', 'item2.2'], 'item3'])
->execute();
At the end it will raise an exception because it is not callable, but exceptions can be expected, but the warning should be avoided.
jrbasso commented
It's no longer applicable since the latest version is always receiving a callable instead of values.