Skip to content

Commit 336b305

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Fix return types for PHP 8.1
2 parents 34b9fad + 4b78e55 commit 336b305

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

OptionsResolver.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,7 @@ public function resolve(array $options = [])
924924
* @throws OptionDefinitionException If there is a cyclic dependency between
925925
* lazy options and/or normalizers
926926
*/
927+
#[\ReturnTypeWillChange]
927928
public function offsetGet(mixed $option, bool $triggerDeprecation = true)
928929
{
929930
if (!$this->locked) {
@@ -1179,6 +1180,7 @@ private function verifyTypes(string $type, mixed $value, array &$invalidTypes, i
11791180
*
11801181
* @see \ArrayAccess::offsetExists()
11811182
*/
1183+
#[\ReturnTypeWillChange]
11821184
public function offsetExists(mixed $option)
11831185
{
11841186
if (!$this->locked) {
@@ -1195,6 +1197,7 @@ public function offsetExists(mixed $option)
11951197
*
11961198
* @throws AccessException
11971199
*/
1200+
#[\ReturnTypeWillChange]
11981201
public function offsetSet(mixed $option, mixed $value)
11991202
{
12001203
throw new AccessException('Setting options via array access is not supported. Use setDefault() instead.');
@@ -1207,6 +1210,7 @@ public function offsetSet(mixed $option, mixed $value)
12071210
*
12081211
* @throws AccessException
12091212
*/
1213+
#[\ReturnTypeWillChange]
12101214
public function offsetUnset(mixed $option)
12111215
{
12121216
throw new AccessException('Removing options via array access is not supported. Use remove() instead.');
@@ -1223,6 +1227,7 @@ public function offsetUnset(mixed $option)
12231227
*
12241228
* @see \Countable::count()
12251229
*/
1230+
#[\ReturnTypeWillChange]
12261231
public function count()
12271232
{
12281233
if (!$this->locked) {

0 commit comments

Comments
 (0)