src/AbstractLocator.php
protected function availableReflections(): \Generator
    {
        /**
         * @var SplFileInfo
         */
        foreach ($this->finder->getIterator() as $file) {
            $reflection = new ReflectionFile((string)$file);

            if ($reflection->hasIncludes()) {
                //We are not analyzing files which has includes, it's not safe to require such reflections
                $this->getLogger()->warning(
                    sprintf("File `%s` has includes and excluded from analysis", $file),
                    compact('file')
                );

                continue;
            }

            /*
             * @var ReflectionFile $reflection
             */
            yield $reflection;
        }
    }
protected function availableReflections(): \Generator
    {
        /**
         * @var SplFileInfo
         */
        foreach ($this->finder->getIterator() as $file) {
            $reflection = new ReflectionFile((string)$file);

            if ($reflection->hasIncludes()) {
                //We are not analyzing files which has includes, it's not safe to require such reflections
                $this->getLogger()->warning(
                    sprintf("File `%s` has includes and excluded from analysis", $file),
                    compact('file')
                );

                continue;
            }

            /*
             * @var ReflectionFile $reflection
             */
            yield $reflection;
        }
    }
protected function availableReflections ( ) : \ Generator { /**
         * @var SplFileInfo
         */ foreach ( $ this -> finder -> getIterator ( ) as $ file ) { $ reflection = new ReflectionFile ( ( string ) $ file ) ; if ( $ reflection -> hasIncludes ( ) ) { //We are not analyzing files which has includes, it's not safe to require such reflections $ this -> getLogger ( ) -> warning ( sprintf ( "File `%s` has includes and excluded from analysis" , $ file ) , compact ( 'file' ) ) ; continue ; } /*
             * @var ReflectionFile $reflection
             */ yield $ reflection ; } }
Available file reflections. Generator.

@return ReflectionFile[]|\Generator
Available file reflections . Generator .