mirror of
https://github.com/pestphp/pest.git
synced 2026-03-10 09:47:23 +01:00
Small tweaks for PHP 8
This commit is contained in:
@ -73,9 +73,10 @@ final class TestCaseFactory
|
||||
{
|
||||
$methodsUsingOnly = $this->methodsUsingOnly();
|
||||
|
||||
$methods = array_values(array_filter($this->methods, function ($method) use ($methodsUsingOnly) {
|
||||
return count($methodsUsingOnly) === 0 || in_array($method, $methodsUsingOnly, true);
|
||||
}));
|
||||
$methods = array_values(array_filter(
|
||||
$this->methods,
|
||||
fn ($method) => count($methodsUsingOnly) === 0 || in_array($method, $methodsUsingOnly, true)
|
||||
));
|
||||
|
||||
if (count($methods) > 0) {
|
||||
$this->evaluate($this->filename, $methods);
|
||||
|
||||
Reference in New Issue
Block a user