Issues (29)

src/Objects/MediaId.php (1 issue)

1
<?php
2
3
declare ( strict_types = 1 );
4
5
namespace Ch0c01dxyz\InstaToken\Objects;
6
7
/**
8
 * @author Egar Rizki <[email protected]>
9
 */
10
class MediaId
11
{
12
	/**
13
	 * @var mediaId
14
	 */
15
	protected $mediaId;
16
17
	/**
18
	 * Media ID constructor
19
	 *
20
	 * @param string $mediaId
21
	 */
22 10
	public function __construct ( string $mediaId )
23
	{
24 10
		$this->mediaId = $mediaId;
0 ignored issues
show
Documentation Bug introduced by
It seems like $mediaId of type string is incompatible with the declared type Ch0c01dxyz\InstaToken\Objects\mediaId of property $mediaId.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
25 10
	}
26
27
	/**
28
	 * @return string
29
	 */
30 10
	public function __toString () : string
31
	{
32 10
		return $this->mediaId;
33
	}
34
}