Skip to content

Commit 7af3179

Browse files
Enable "native_constant_invocation" CS rule
1 parent 27360cd commit 7af3179

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

PropertyAccessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public function setValue(&$objectOrArray, $propertyPath, $value)
246246
*/
247247
public static function handleError($type, $message, $file, $line, $context = [])
248248
{
249-
if (E_RECOVERABLE_ERROR === $type) {
249+
if (\E_RECOVERABLE_ERROR === $type) {
250250
self::throwInvalidArgumentException($message, debug_backtrace(false), 1);
251251
}
252252

@@ -961,7 +961,7 @@ public static function createCache($namespace, $defaultLifetime, $version, Logge
961961
}
962962

963963
$apcu = new ApcuAdapter($namespace, $defaultLifetime / 5, $version);
964-
if ('cli' === \PHP_SAPI && !filter_var(ini_get('apc.enable_cli'), FILTER_VALIDATE_BOOLEAN)) {
964+
if ('cli' === \PHP_SAPI && !filter_var(ini_get('apc.enable_cli'), \FILTER_VALIDATE_BOOLEAN)) {
965965
$apcu->setLogger(new NullLogger());
966966
} elseif (null !== $logger) {
967967
$apcu->setLogger($logger);

StringUtil.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ private function __construct()
4444
*/
4545
public static function singularify($plural)
4646
{
47-
@trigger_error('StringUtil::singularify() is deprecated since Symfony 3.1 and will be removed in 4.0. Use Symfony\Component\Inflector\Inflector::singularize instead.', E_USER_DEPRECATED);
47+
@trigger_error('StringUtil::singularify() is deprecated since Symfony 3.1 and will be removed in 4.0. Use Symfony\Component\Inflector\Inflector::singularize instead.', \E_USER_DEPRECATED);
4848

4949
return Inflector::singularize($plural);
5050
}

0 commit comments

Comments
 (0)