Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00acc8c

Browse files
author
Andrei Igna
committed
[HttpFoundation] Updated array syntax, added line in ChangeLog
1 parent 7b2d1d4 commit 00acc8c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Symfony/Component/HttpFoundation/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CHANGELOG
1010
* The `get()` method of the `AcceptHeader` class now takes into account the
1111
`*` and `*/*` default values (if they are present in the Accept HTTP header)
1212
when looking for items.
13+
* Adds `getAcceptableFormats()` for reading acceptable formats based on Accept header
1314

1415
4.0.0
1516
-----

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ public function getAcceptableFormats()
13871387
return $this->acceptableFormats;
13881388
}
13891389

1390-
return $this->acceptableFormats = array_values(array_unique(array_filter(array_map([$this, 'getFormat'], $this->getAcceptableContentTypes()))));
1390+
return $this->acceptableFormats = array_values(array_unique(array_filter(array_map(array($this, 'getFormat'), $this->getAcceptableContentTypes()))));
13911391
}
13921392

13931393
/**

0 commit comments

Comments
 (0)