Fix boolean types (#779)
Changed `Boolean` to `bool` to avoid Psalm being confused with a potential class. Thanks @digilist
This commit is contained in:
parent
a1a3281dbf
commit
7abb6d36cb
10 changed files with 12 additions and 12 deletions
|
|
@ -142,7 +142,7 @@ class AspectRatio
|
||||||
* custom ratio need to be used, disable it.
|
* custom ratio need to be used, disable it.
|
||||||
*
|
*
|
||||||
* @param Dimension $dimension
|
* @param Dimension $dimension
|
||||||
* @param Boolean $forceStandards Whether to force or not standard ratios
|
* @param bool $forceStandards Whether to force or not standard ratios
|
||||||
*
|
*
|
||||||
* @return AspectRatio
|
* @return AspectRatio
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ abstract class AbstractData implements \Countable
|
||||||
* Returns true if data has property.
|
* Returns true if data has property.
|
||||||
*
|
*
|
||||||
* @param string $property
|
* @param string $property
|
||||||
* @return Boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function has($property)
|
public function has($property)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ class Stream extends AbstractData
|
||||||
/**
|
/**
|
||||||
* Returns true if the stream is an audio stream.
|
* Returns true if the stream is an audio stream.
|
||||||
*
|
*
|
||||||
* @return Boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isAudio()
|
public function isAudio()
|
||||||
{
|
{
|
||||||
|
|
@ -30,7 +30,7 @@ class Stream extends AbstractData
|
||||||
/**
|
/**
|
||||||
* Returns true if the stream is a video stream.
|
* Returns true if the stream is a video stream.
|
||||||
*
|
*
|
||||||
* @return Boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isVideo()
|
public function isVideo()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ class OptionsTester implements OptionsTesterInterface
|
||||||
|
|
||||||
$output = $this->retrieveHelpOutput();
|
$output = $this->retrieveHelpOutput();
|
||||||
|
|
||||||
$ret = (Boolean) preg_match('/^'.$name.'/m', $output);
|
$ret = (bool) preg_match('/^'.$name.'/m', $output);
|
||||||
|
|
||||||
$this->cache->save($id, $ret);
|
$this->cache->save($id, $ret);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ interface OptionsTesterInterface
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
*
|
*
|
||||||
* @return Boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function has($name);
|
public function has($name);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ class ResizeFilter implements VideoFilterInterface
|
||||||
private $dimension;
|
private $dimension;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
private $mode;
|
private $mode;
|
||||||
/** @var Boolean */
|
/** @var bool */
|
||||||
private $forceStandards;
|
private $forceStandards;
|
||||||
/** @var integer */
|
/** @var integer */
|
||||||
private $priority;
|
private $priority;
|
||||||
|
|
@ -69,7 +69,7 @@ class ResizeFilter implements VideoFilterInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function areStandardsForced()
|
public function areStandardsForced()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ class VideoFilters extends AudioFilters
|
||||||
*
|
*
|
||||||
* @param Dimension $dimension
|
* @param Dimension $dimension
|
||||||
* @param string $mode
|
* @param string $mode
|
||||||
* @param Boolean $forceStandards
|
* @param bool $forceStandards
|
||||||
*
|
*
|
||||||
* @return VideoFilters
|
* @return VideoFilters
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ abstract class AbstractProgressListener extends EventEmitter implements Listener
|
||||||
/** @var string */
|
/** @var string */
|
||||||
private $pathfile;
|
private $pathfile;
|
||||||
|
|
||||||
/** @var Boolean */
|
/** @var bool */
|
||||||
private $initialized = false;
|
private $initialized = false;
|
||||||
|
|
||||||
/** @var integer */
|
/** @var integer */
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ interface VideoInterface extends AudioInterface
|
||||||
*
|
*
|
||||||
* @see https://wikipedia.org/wiki/Video_compression_picture_types
|
* @see https://wikipedia.org/wiki/Video_compression_picture_types
|
||||||
*
|
*
|
||||||
* @return Boolean
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function supportBFrames();
|
public function supportBFrames();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ class Frame extends AbstractMediaType
|
||||||
* Uses the `unaccurate method by default.`
|
* Uses the `unaccurate method by default.`
|
||||||
*
|
*
|
||||||
* @param string $pathfile
|
* @param string $pathfile
|
||||||
* @param Boolean $accurate
|
* @param bool $accurate
|
||||||
*
|
*
|
||||||
* @return Frame
|
* @return Frame
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue