mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-10 09:18:33 +01:00
Fixed some more psalm issues.
This commit is contained in:
@@ -94,12 +94,12 @@ class EntityURLGenerator
|
||||
* @param mixed $entity The element for which the page should be generated
|
||||
* @param string $type The page type. Currently supported: 'info', 'edit', 'create', 'clone', 'list'/'list_parts'
|
||||
*
|
||||
* @return string the link to the desired page
|
||||
* @return null|string the link to the desired page
|
||||
*
|
||||
* @throws EntityNotSupportedException thrown if the entity is not supported for the given type
|
||||
* @throws InvalidArgumentException thrown if the givent type is not existing
|
||||
*/
|
||||
public function getURL($entity, string $type)
|
||||
public function getURL($entity, string $type): ?string
|
||||
{
|
||||
switch ($type) {
|
||||
case 'info':
|
||||
|
||||
Reference in New Issue
Block a user