mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-05 07:54:35 +02:00
Fixed some deprecations related to missing return types
This commit is contained in:
parent
eb24aa2e68
commit
294f7cf005
11 changed files with 20 additions and 21 deletions
|
@ -41,7 +41,7 @@ class SnakeCasePropertyAccessExtractor implements PropertyAccessExtractorInterfa
|
|||
//$this->reflectionExtractor = new ReflectionExtractor();
|
||||
}
|
||||
|
||||
public function isReadable(string $class, string $property, array $context = [])
|
||||
public function isReadable(string $class, string $property, array $context = []): ?bool
|
||||
{
|
||||
//Null means skip this extractor
|
||||
return null;
|
||||
|
@ -56,7 +56,7 @@ class SnakeCasePropertyAccessExtractor implements PropertyAccessExtractorInterfa
|
|||
}
|
||||
|
||||
|
||||
public function isWritable(string $class, string $property, array $context = [])
|
||||
public function isWritable(string $class, string $property, array $context = []): ?bool
|
||||
{
|
||||
//Check writeablity using a camelized property name
|
||||
$isWriteable = $this->reflectionExtractor->isWritable($class, $this->camelize($property), $context);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue