PHP code example of mcmatters / fqn-checker

1. Go to this page and download the library: Download mcmatters/fqn-checker library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mcmatters / fqn-checker example snippets




declare(strict_types=1);

use McMatters\FqnChecker\FqnChecker;

print_r($checker->getNotImported());
print_r($checker->getImported());



declare(strict_types=1);

namespace Acme;

use function ucfirst;

class Wrong
{
    public function testArray()
    {
        return array_filter([], null);
    }
    
    public function testString()
    {
        return ucfirst('hello');
    }
}