[String] fix failing test on PHP 8
This commit is contained in:
parent
f632b76824
commit
0a2f7b2ceb
@ -107,6 +107,8 @@ class LazyStringTest extends TestCase
|
|||||||
$this->assertFalse(LazyString::isStringable([]));
|
$this->assertFalse(LazyString::isStringable([]));
|
||||||
$this->assertFalse(LazyString::isStringable(STDIN));
|
$this->assertFalse(LazyString::isStringable(STDIN));
|
||||||
$this->assertFalse(LazyString::isStringable(new \StdClass()));
|
$this->assertFalse(LazyString::isStringable(new \StdClass()));
|
||||||
$this->assertFalse(LazyString::isStringable(@eval('return new class() {private function __toString() {}};')));
|
if (\PHP_VERSION_ID < 80000) {
|
||||||
|
$this->assertFalse(LazyString::isStringable(@eval('return new class() {private function __toString() {}};')));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user