for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SaasReady\Database;
trait SaasReadyFactory
{
protected static function newFactory()
$factoryClassName = class_basename(get_called_class());
class_basename
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$factoryClassName = /** @scrutinizer ignore-call */ class_basename(get_called_class());
return ("SaasReady\\Database\\Factories\\{$factoryClassName}Factory")::new();
}