mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
27 lines
646 B
PHP
27 lines
646 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\ArchPresets;
|
|
|
|
use Pest\Arch\Contracts\ArchExpectation;
|
|
use Pest\Expectation;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class Relaxed extends AbstractPreset
|
|
{
|
|
/**
|
|
* Executes the arch preset.
|
|
*/
|
|
public function execute(): void
|
|
{
|
|
$this->eachUserNamespace(
|
|
fn (Expectation $namespace): ArchExpectation => $namespace->not->toUseStrictTypes(),
|
|
fn (Expectation $namespace): ArchExpectation => $namespace->classes()->not->toBeFinal(),
|
|
fn (Expectation $namespace): ArchExpectation => $namespace->classes()->not->toHavePrivateMethods(),
|
|
);
|
|
}
|
|
}
|