Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 79b93b2

Browse files
Merge branch '2.3' into 2.6
* 2.3: Changed visibility of setUp() and tearDown to protected fixed XSS in the exception handler Php Inspections (EA Extended) - static code analysis includes: [2.3] Remove most refs uses Test with local components instead of waiting for the subtree-splitter when possible Conflicts: src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php src/Symfony/Component/Config/Util/XmlUtils.php src/Symfony/Component/Console/Helper/ProgressHelper.php src/Symfony/Component/Debug/ExceptionHandler.php src/Symfony/Component/Debug/Tests/ErrorHandlerTest.php src/Symfony/Component/Filesystem/Tests/FilesystemTest.php src/Symfony/Component/OptionsResolver/Options.php src/Symfony/Component/Security/Acl/Dbal/MutableAclProvider.php src/Symfony/Component/Yaml/Inline.php
2 parents b883dbd + 117752e commit 79b93b2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Acl/Dbal/MutableAclProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public function updateAcl(MutableAclInterface $acl)
256256
if (null === $propertyChanges['parentAcl'][1]) {
257257
$sets[] = 'parent_object_identity_id = NULL';
258258
} else {
259-
$sets[] = 'parent_object_identity_id = '.intval($propertyChanges['parentAcl'][1]->getId());
259+
$sets[] = 'parent_object_identity_id = '.(int) $propertyChanges['parentAcl'][1]->getId();
260260
}
261261

262262
$this->regenerateAncestorRelations($acl);
@@ -478,7 +478,7 @@ class_id,
478478
$query,
479479
$this->options['entry_table_name'],
480480
$classId,
481-
null === $objectIdentityId ? 'NULL' : intval($objectIdentityId),
481+
null === $objectIdentityId ? 'NULL' : (int) $objectIdentityId,
482482
null === $field ? 'NULL' : $this->connection->quote($field),
483483
$aceOrder,
484484
$securityIdentityId,
@@ -596,7 +596,7 @@ protected function getSelectAccessControlEntryIdSql($classId, $oid, $field, $ord
596596
$classId,
597597
null === $oid ?
598598
$this->connection->getDatabasePlatform()->getIsNullExpression('object_identity_id')
599-
: 'object_identity_id = '.intval($oid),
599+
: 'object_identity_id = '.(int) $oid,
600600
null === $field ?
601601
$this->connection->getDatabasePlatform()->getIsNullExpression('field_name')
602602
: 'field_name = '.$this->connection->quote($field),
@@ -879,7 +879,7 @@ private function updateNewFieldAceProperty($name, array $changes)
879879

880880
$aceIdProperty = new \ReflectionProperty('Symfony\Component\Security\Acl\Domain\Entry', 'id');
881881
$aceIdProperty->setAccessible(true);
882-
$aceIdProperty->setValue($ace, intval($aceId));
882+
$aceIdProperty->setValue($ace, (int) $aceId);
883883
}
884884
}
885885
}
@@ -953,7 +953,7 @@ private function updateNewAceProperty($name, array $changes)
953953

954954
$aceIdProperty = new \ReflectionProperty($ace, 'id');
955955
$aceIdProperty->setAccessible(true);
956-
$aceIdProperty->setValue($ace, intval($aceId));
956+
$aceIdProperty->setValue($ace, (int) $aceId);
957957
}
958958
}
959959
}

Http/EntryPoint/DigestAuthenticationEntryPoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function start(Request $request, AuthenticationException $authException =
5050
$authenticateHeader = sprintf('Digest realm="%s", qop="auth", nonce="%s"', $this->realmName, $nonceValueBase64);
5151

5252
if ($authException instanceof NonceExpiredException) {
53-
$authenticateHeader = $authenticateHeader.', stale="true"';
53+
$authenticateHeader .= ', stale="true"';
5454
}
5555

5656
if (null !== $this->logger) {

0 commit comments

Comments
 (0)