Framework Update
This commit is contained in:
+5
-9
@@ -1,12 +1,8 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Respect/Validation.
|
||||
*
|
||||
* (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE file
|
||||
* that was distributed with this source code.
|
||||
* Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
@@ -28,7 +24,7 @@ use function rtrim;
|
||||
use function sprintf;
|
||||
|
||||
/**
|
||||
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
|
||||
* @author Alexandre Gomes Gaigalas <alganet@gmail.com>
|
||||
* @author Emmerson Siqueira <emmersonsiqueira@gmail.com>
|
||||
* @author Henrique Moody <henriquemoody@gmail.com>
|
||||
* @author Ivan Zinovyev <vanyazin@gmail.com>
|
||||
@@ -93,6 +89,7 @@ final class KeyNested extends AbstractRelated
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ArrayAccess<mixed, mixed> $array
|
||||
* @param mixed $key
|
||||
*
|
||||
* @return mixed
|
||||
@@ -110,11 +107,10 @@ final class KeyNested extends AbstractRelated
|
||||
/**
|
||||
* @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint
|
||||
*
|
||||
* @param object $object
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
private function getValueFromObject($object, string $property)
|
||||
private function getValueFromObject(object $object, string $property)
|
||||
{
|
||||
if (empty($property) || !property_exists($object, $property)) {
|
||||
$message = sprintf('Cannot select the property %s from the given object', $this->getReference());
|
||||
|
||||
Reference in New Issue
Block a user