"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Symfony/Component/ErrorHandler/DebugClassLoader.php" between
symfony-4.4.14.tar.gz and symfony-4.4.15.tar.gz

About: Symfony is a web application framework for PHP projects. Source code (4.4 series).

DebugClassLoader.php  (symfony-4.4.14):DebugClassLoader.php  (symfony-4.4.15)
skipping to change at line 16 skipping to change at line 16
* (c) Fabien Potencier <fabien@symfony.com> * (c) Fabien Potencier <fabien@symfony.com>
* *
* For the full copyright and license information, please view the LICENSE * For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
namespace Symfony\Component\ErrorHandler; namespace Symfony\Component\ErrorHandler;
use Doctrine\Common\Persistence\Proxy as LegacyProxy; use Doctrine\Common\Persistence\Proxy as LegacyProxy;
use Doctrine\Persistence\Proxy; use Doctrine\Persistence\Proxy;
use Mockery\MockInterface;
use PHPUnit\Framework\MockObject\Matcher\StatelessInvocation; use PHPUnit\Framework\MockObject\Matcher\StatelessInvocation;
use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\MockObject\MockObject;
use Prophecy\Prophecy\ProphecySubjectInterface; use Prophecy\Prophecy\ProphecySubjectInterface;
use ProxyManager\Proxy\ProxyInterface; use ProxyManager\Proxy\ProxyInterface;
/** /**
* Autoloader checking if the class is really defined in the file found. * Autoloader checking if the class is really defined in the file found.
* *
* The ClassLoader will wrap all registered autoloaders * The ClassLoader will wrap all registered autoloaders
* and will throw an exception if a file is found but does * and will throw an exception if a file is found but does
skipping to change at line 309 skipping to change at line 310
foreach ($offsets as $getSymbols => $i) { foreach ($offsets as $getSymbols => $i) {
$symbols = $getSymbols(); $symbols = $getSymbols();
for (; $i < \count($symbols); ++$i) { for (; $i < \count($symbols); ++$i) {
if (!is_subclass_of($symbols[$i], MockObject::class) if (!is_subclass_of($symbols[$i], MockObject::class)
&& !is_subclass_of($symbols[$i], ProphecySubjectInterface::c lass) && !is_subclass_of($symbols[$i], ProphecySubjectInterface::c lass)
&& !is_subclass_of($symbols[$i], Proxy::class) && !is_subclass_of($symbols[$i], Proxy::class)
&& !is_subclass_of($symbols[$i], ProxyInterface::class) && !is_subclass_of($symbols[$i], ProxyInterface::class)
&& !is_subclass_of($symbols[$i], LegacyProxy::class) && !is_subclass_of($symbols[$i], LegacyProxy::class)
&& !is_subclass_of($symbols[$i], MockInterface::class)
) { ) {
$loader->checkClass($symbols[$i]); $loader->checkClass($symbols[$i]);
} }
} }
$offsets[$getSymbols] = $i; $offsets[$getSymbols] = $i;
} }
return true; return true;
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)