Skip to content

Commit

Permalink
Merge branch '11.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 7, 2024
2 parents d56824f + 793693f commit 0c23333
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Framework/MockObject/Generator/Generator.php
Expand Up @@ -26,7 +26,6 @@
use function is_array;
use function is_object;
use function md5;
use function method_exists;
use function mt_rand;
use function preg_match;
use function preg_match_all;
Expand Down Expand Up @@ -646,7 +645,7 @@ private function generateCodeForTestDoubleClass(string $type, bool $mockObject,
throw new ClassIsFinalException($_mockClassName['fullClassName']);
}

if (method_exists($class, 'isReadOnly') && $class->isReadOnly()) {
if ($class->isReadOnly()) {
throw new ClassIsReadonlyException($_mockClassName['fullClassName']);
}

Expand Down

0 comments on commit 0c23333

Please sign in to comment.