for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Squareetlabs\LaravelToon\Rules;
use Illuminate\Contracts\Validation\Rule;
use Squareetlabs\LaravelToon\Services\ToonService;
class ValidToonFormat implements Rule
Illuminate\Contracts\Validation\Rule
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
class ValidToonFormat implements /** @scrutinizer ignore-deprecated */ Rule
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.
{
public function __construct(
private readonly ToonService $toon = new ToonService(),
) {}
public function passes($attribute, $value): bool
try {
$this->toon->decode((string)$value);
return true;
} catch (\Exception) {
return false;
}
public function message(): string
return 'El valor no es un formato TOON válido.';
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.