mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
30 lines
618 B
PHP
30 lines
618 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Rules\Tests\Data\NoObjectParameters;
|
|
|
|
function nativeObject(object $input): void {} // error: line 7
|
|
|
|
/**
|
|
* @param object $payload
|
|
*/
|
|
function docblockObject($payload): void {} // error: line 12
|
|
|
|
function nullableObject(?object $maybe): void {} // error: line 14
|
|
|
|
function named(\DateTimeImmutable $moment): void {}
|
|
|
|
/**
|
|
* @template T of object
|
|
* @param T $subject
|
|
*/
|
|
function generic(object $subject): void {}
|
|
|
|
final class Handler
|
|
{
|
|
public function apply(object $target): void {} // error: line 26
|
|
}
|
|
|
|
$closure = function (object $thing): void {}; // error: line 29
|