diff --git a/src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php b/src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php index 3ce787b852..b3234194bc 100644 --- a/src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php +++ b/src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php @@ -53,7 +53,7 @@ class ProxyDumper implements DumperInterface $instantiation = 'return'; if ($definition->isShared()) { - $instantiation .= sprintf(' $this->%s[\'%s\'] =', \method_exists(ContainerBuilder::class, 'addClassResource') || ($definition->isPublic() && !$definition->isPrivate()) ? 'services' : 'privates', $id); + $instantiation .= sprintf(' $this->%s[\'%s\'] =', $definition->isPublic() && !$definition->isPrivate() ? 'services' : 'privates', $id); } if (null === $factoryCode) { diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php index 634ab6627c..4d5702dc8d 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php @@ -99,7 +99,7 @@ class ProxyDumperTest extends TestCase array( (new Definition(__CLASS__)) ->setPublic(false), - \method_exists(ContainerBuilder::class, 'addClassResource') ? 'services' : 'privates', + 'privates', ), array( (new Definition(__CLASS__)) diff --git a/src/Symfony/Bridge/ProxyManager/composer.json b/src/Symfony/Bridge/ProxyManager/composer.json index 441389af82..16b95e8318 100644 --- a/src/Symfony/Bridge/ProxyManager/composer.json +++ b/src/Symfony/Bridge/ProxyManager/composer.json @@ -17,7 +17,7 @@ ], "require": { "php": "^7.1.3", - "symfony/dependency-injection": "~3.4|~4.0", + "symfony/dependency-injection": "~4.0", "ocramius/proxy-manager": "~2.1" }, "require-dev": { diff --git a/src/Symfony/Component/Cache/Marshaller/DefaultMarshaller.php b/src/Symfony/Component/Cache/Marshaller/DefaultMarshaller.php index 734f32fcd8..16c02bb08f 100644 --- a/src/Symfony/Component/Cache/Marshaller/DefaultMarshaller.php +++ b/src/Symfony/Component/Cache/Marshaller/DefaultMarshaller.php @@ -76,12 +76,12 @@ class DefaultMarshaller implements MarshallerInterface return $value; } } elseif (false === $igbinaryNull) { - throw new \RuntimeException('Failed to unserialize cached value, did you forget to install the "igbinary" extension?'); + throw new \RuntimeException('Failed to unserialize values, did you forget to install the "igbinary" extension?'); } elseif (null !== $value = igbinary_unserialize($value)) { return $value; } - throw new \DomainException(error_get_last() ? error_get_last()['message'] : 'Failed to unserialize cached value'); + throw new \DomainException(error_get_last() ? error_get_last()['message'] : 'Failed to unserialize values.'); } catch (\Error $e) { throw new \ErrorException($e->getMessage(), $e->getCode(), E_ERROR, $e->getFile(), $e->getLine()); } finally { diff --git a/src/Symfony/Component/Cache/Marshaller/MarshallerInterface.php b/src/Symfony/Component/Cache/Marshaller/MarshallerInterface.php index 4d757e38c4..cdd6c4022c 100644 --- a/src/Symfony/Component/Cache/Marshaller/MarshallerInterface.php +++ b/src/Symfony/Component/Cache/Marshaller/MarshallerInterface.php @@ -14,7 +14,7 @@ namespace Symfony\Component\Cache\Marshaller; /** * Serializes/unserializes PHP values. * - * Implementations of this interface MUST deal with errors carefuly. They MUST + * Implementations of this interface MUST deal with errors carefully. They MUST * also deal with forward and backward compatibility at the storage format level. * * @author Nicolas Grekas