Skip to content

Commit 9291482

Browse files
committed
Allow Php 8.5 support
Signed-off-by: sandesh.as <cod48668@adobe.com>
1 parent 8db4b82 commit 9291482

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/Config.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,8 @@ public function getTypePreference(string $type, ?string $contextClass = null): ?
188188
*
189189
* @see \Laminas\Di\ConfigInterface::getTypePreferencesForClass()
190190
*/
191-
private function getTypePreferenceForClass(string $type, ?string $context): ?string
191+
private function getTypePreferenceForClass(string $type, string $context): ?string
192192
{
193-
if ($context === null) {
194-
return null;
195-
}
196-
197193
if (! isset($this->types[$context]['preferences'][$type])) {
198194
return null;
199195
}

0 commit comments

Comments
 (0)