for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gacela\Framework\Config;
use Gacela\Framework\Config;
final class ConfigFactory
{
/** @deprecated */
private const GACELA_JSON_CONFIG_FILENAME = 'gacela.json';
private const GACELA_PHP_CONFIG_FILENAME = 'gacela.php';
public function createGacelaConfigFileFactory(): GacelaConfigFileFactoryInterface
/** @psalm-suppress DeprecatedConstant */
return new GacelaConfigFileFactory(
Config::getInstance()->getApplicationRootDir(),
self::GACELA_PHP_CONFIG_FILENAME,
self::GACELA_JSON_CONFIG_FILENAME
Gacela\Framework\Config\...LA_JSON_CONFIG_FILENAME
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
/** @scrutinizer ignore-deprecated */ self::GACELA_JSON_CONFIG_FILENAME
);
}
public function createPathFinder(): PathFinderInterface
return new PathFinder();