for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Wandu\Config\Loader;
use Wandu\Config\Contracts\Loader;
class PhpLoader implements Loader
{
/**
* {@inheritdoc}
*/
public function test(string $path): bool
return substr($path, -4) === '.php' && file_exists($path);
}
public function load(string $path)
return require $path;