AK
Size: a a a
AK
П️
SA
П️
$el->id > заданного
).array_map()
?П️
П️
П️
private ?resource $locked_file;не понятно
/* ... */
$this->locked_file = fopen(self::LOCKFL_PATH, 'c+');
>> PHP Fatal error: Uncaught TypeError: Typed property ...::$locked_file must be an instance of resource or null, resource used
AM
private ?resource $locked_file;не понятно
/* ... */
$this->locked_file = fopen(self::LOCKFL_PATH, 'c+');
>> PHP Fatal error: Uncaught TypeError: Typed property ...::$locked_file must be an instance of resource or null, resource used
null
в декларации свойстваI
private ?resource $locked_file;не понятно
/* ... */
$this->locked_file = fopen(self::LOCKFL_PATH, 'c+');
>> PHP Fatal error: Uncaught TypeError: Typed property ...::$locked_file must be an instance of resource or null, resource used
private ?resource $locked_file = null;
П️
П️
private ?resource $locked_file = null;
П️
П️
class boardImage {
public int $id;
public int $width;
public int $height;
...
$posts = json_decode(file_get_contents($url));
return $posts ?
array_values(
array_filter($posts, function (boardImage $pic) {
return $pic->id > $this->last_id;
})
) :
[];
>>>PHP Fatal error: Uncaught TypeError: Argument 1 passed to ...::{closure}() must be an instance of boardImage, instance of stdClass given
S
class boardImage {
public int $id;
public int $width;
public int $height;
...
$posts = json_decode(file_get_contents($url));
return $posts ?
array_values(
array_filter($posts, function (boardImage $pic) {
return $pic->id > $this->last_id;
})
) :
[];
>>>PHP Fatal error: Uncaught TypeError: Argument 1 passed to ...::{closure}() must be an instance of boardImage, instance of stdClass given
П️