mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
fixes tests
This commit is contained in:
@ -20,7 +20,7 @@ final class Base implements ArchPreset
|
||||
*/
|
||||
public function boot(TestCall $testCall, array $baseNamespace): TestCall|ArchExpectation
|
||||
{
|
||||
return $testCall
|
||||
return $testCall // @phpstan-ignore-line
|
||||
->expect(['dd', 'dump', 'ray', 'die', 'var_dump', 'sleep'])
|
||||
->not
|
||||
->toBeUsed();
|
||||
|
||||
@ -20,7 +20,7 @@ final class Strict implements ArchPreset
|
||||
*/
|
||||
public function boot(TestCall $testCall, array $baseNamespaces): TestCall|ArchExpectation
|
||||
{
|
||||
return $testCall
|
||||
return $testCall // @phpstan-ignore-line
|
||||
->expect($baseNamespaces)
|
||||
->each
|
||||
->toUseStrictTypes();
|
||||
|
||||
@ -15,6 +15,8 @@ final class Preset
|
||||
{
|
||||
/**
|
||||
* The application / package base namespaces.
|
||||
*
|
||||
* @var ?array<int, string>
|
||||
*/
|
||||
private static ?array $baseNamespaces = null;
|
||||
|
||||
@ -46,6 +48,8 @@ final class Preset
|
||||
|
||||
/**
|
||||
* Get the base namespaces for the application / package.
|
||||
*
|
||||
* @return array<int, string>
|
||||
*/
|
||||
private function baseNamespaces(): array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user