src/Repository/Model/playable_item.php
Return type of get_medias()
is undeclared type \Ampache\Repository\Model\list<array></array>
Open
Open
public function get_medias(?string $filter_type = null): array;
- Exclude checks
Doc-block of get_medias
contains declared return type \Ampache\Repository\Model\list<array></array>
which is incompatible with the return type array
declared in the signature Open
Open
* @return list<array{object_type: string, object_id: int}>
- Exclude checks
The parameter $filter_type is not named in camelCase. Open
Open
public function get_medias(?string $filter_type = null): array;
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The class playable_item is not named in CamelCase. Open
Open
interface playable_item
{
/**
* format
*
- Read upRead up
- Exclude checks
CamelCaseClassName
Since: 0.2
It is considered best practice to use the CamelCase notation to name classes.
Example
class class_name {
}
Source
Interface name "playable_item" is not in camel caps format Open
Open
interface playable_item
- Exclude checks