Skip to content

Commit 34e18ee

Browse files
Merge branch '7.4' into 8.0
* 7.4: [HttpKernel][Security] Refactor: use `getAttributes` with argument mark getRequiredOptions()/getDefaultOption() of UniqueEntity as deprecated do not install ext-zstd on PHP 8.5 [DoctrineBridge] Prevent idle connection listener from running on subrequests optimize `in_array` calls [Routing] Add test to validate that default value is allowed to not match requirement [DependencyInjection] Fix proxying services defined with an abstract class and a factory fix handling required options Fix @var phpdoc [Lock] [MongoDB] Enforce readPreference=primary and writeConcern=majority [FrameworkBundle] fix phpdoc in `MicroKernelTrait` Fixed validator translations for Albanian
2 parents 1e34ea0 + 9d273d6 commit 34e18ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Parser/Handler/StringHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function handle(Reader $reader, TokenStream $stream): bool
4141
{
4242
$quote = $reader->getSubstring(1);
4343

44-
if (!\in_array($quote, ["'", '"'])) {
44+
if (!\in_array($quote, ["'", '"'], true)) {
4545
return false;
4646
}
4747

Parser/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private function parseSimpleSelector(TokenStream $stream, bool $insideNegation =
190190
}
191191

192192
$identifier = $stream->getNextIdentifier();
193-
if (\in_array(strtolower($identifier), ['first-line', 'first-letter', 'before', 'after'])) {
193+
if (\in_array(strtolower($identifier), ['first-line', 'first-letter', 'before', 'after'], true)) {
194194
// Special case: CSS 2.1 pseudo-elements can have a single ':'.
195195
// Any new pseudo-element must have two.
196196
$pseudoElement = $identifier;

0 commit comments

Comments
 (0)