php-sap/interfaces

View on GitHub
src/Api/IMember.php

Summary

Maintainability
A
0 mins
Test Coverage

@throws annotation of __construct has suspicious interface type \phpsap\interfaces\exceptions\IInvalidArgumentException for an @throws annotation, expected class (PHP allows interfaces to be caught, so this might be intentional)
Open

    public function __construct(array $array);
Severity: Minor
Found in src/Api/IMember.php by phan

@throws annotation of cast has suspicious interface type \phpsap\interfaces\exceptions\IInvalidArgumentException for an @throws annotation, expected class (PHP allows interfaces to be caught, so this might be intentional)
Open

    public function cast(null|bool|int|float|string $value): null|bool|int|float|string|DateTime|DateInterval;
Severity: Minor
Found in src/Api/IMember.php by phan

@throws annotation of create has suspicious interface type \phpsap\interfaces\exceptions\IInvalidArgumentException for an @throws annotation, expected class (PHP allows interfaces to be caught, so this might be intentional)
Open

    public static function create(string $type, string $name): IMember;
Severity: Minor
Found in src/Api/IMember.php by phan

Doc-block of $value in cast is phpdoc param type bool|float|int|string which is not a permitted replacement of the nullable param type bool|float|int|null|string declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param  float|bool|int|string  $value  The output to typecast.
Severity: Minor
Found in src/Api/IMember.php by phan

There are no issues that match your filters.

Category
Status