Issues (40)

lib/Search/Result.php (3 issues)

1
<?php declare(strict_types=1);
2
3
/**
4
 * ownCloud - Music app
5
 *
6
 * This file is licensed under the Affero General Public License version 3 or
7
 * later. See the COPYING file.
8
 *
9
 * @author Pauli Järvinen <[email protected]>
10
 * @copyright Pauli Järvinen 2018 - 2025
11
 */
12
13
namespace OCA\Music\Search;
14
15
/**
16
 * A found track/album/artist
17
 */
18
class Result extends \OCP\Search\Result {
0 ignored issues
show
Deprecated Code introduced by
The class OCP\Search\Result has been deprecated: 20.0.0 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

18
class Result extends /** @scrutinizer ignore-deprecated */ \OCP\Search\Result {
Loading history...
19
	public function __construct(int $id, string $name, string $link, string $type) {
20
		parent::__construct((string)$id, $name, $link); // TODO: base class doc says that $id should contain app name
0 ignored issues
show
Deprecated Code introduced by
The function OCP\Search\Result::__construct() has been deprecated: 20.0.0 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

20
		/** @scrutinizer ignore-deprecated */ parent::__construct((string)$id, $name, $link); // TODO: base class doc says that $id should contain app name

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
21
		$this->type = $type; // defined by the parent class
0 ignored issues
show
Deprecated Code introduced by
The property OCP\Search\Result::$type has been deprecated: 20.0.0 ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

21
		/** @scrutinizer ignore-deprecated */ $this->type = $type; // defined by the parent class

This property has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.

Loading history...
22
	}
23
}
24