Skip to content

Commit 5ce17bf

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: [Finder] Fix gitignore regex build with "**" Fixed deprecation warnings about passing null as parameter [Security] Keep Bulgarian wording consistent across all texts. Migrate configuration file for PHP CS Fixer 2.19/3.0 [Form] Replace broken ServerParams mock
2 parents 78c136f + 46e66e8 commit 5ce17bf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

DependencyInjection/RegisterControllerArgumentLocatorsPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function process(ContainerBuilder $container)
131131
$args = [];
132132
foreach ($parameters as $p) {
133133
/** @var \ReflectionParameter $p */
134-
$type = ltrim($target = ProxyHelper::getTypeHint($r, $p), '\\');
134+
$type = ltrim($target = (string) ProxyHelper::getTypeHint($r, $p), '\\');
135135
$invalidBehavior = ContainerInterface::IGNORE_ON_INVALID_REFERENCE;
136136

137137
if (isset($arguments[$r->name][$p->name])) {

EventListener/RouterListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public static function getSubscribedEvents(): array
164164
private function createWelcomeResponse(): Response
165165
{
166166
$version = Kernel::VERSION;
167-
$projectDir = realpath($this->projectDir).\DIRECTORY_SEPARATOR;
167+
$projectDir = realpath((string) $this->projectDir).\DIRECTORY_SEPARATOR;
168168
$docVersion = substr(Kernel::VERSION, 0, 3);
169169

170170
ob_start();

Tests/HttpCache/HttpCacheTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ public function testIncrementsMaxAgeWhenNoDateIsSpecifiedEventWhenUsingETag()
212212

213213
public function testValidatesPrivateResponsesCachedOnTheClient()
214214
{
215-
$this->setNextResponse(200, [], '', function ($request, $response) {
216-
$etags = preg_split('/\s*,\s*/', $request->headers->get('IF_NONE_MATCH'));
215+
$this->setNextResponse(200, [], '', function (Request $request, $response) {
216+
$etags = preg_split('/\s*,\s*/', $request->headers->get('IF_NONE_MATCH', ''));
217217
if ($request->cookies->has('authenticated')) {
218218
$response->headers->set('Cache-Control', 'private, no-store');
219219
$response->setETag('"private tag"');

0 commit comments

Comments
 (0)