Automattic\WooCommerce\EmailEditorVendor\Symfony\Polyfill\Php80

Php80::get_resource_id │ public static │ WC 1.0

Метод класса: Php80{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = Php80::get_resource_id( $res ): int;
$res(обязательный)
.

Код Php80::get_resource_id() WC 11.3.0

public static function get_resource_id($res): int
{
    if (!\is_resource($res) && null === @get_resource_type($res)) {
        throw new \TypeError(sprintf('Argument 1 passed to get_resource_id() must be of the type resource, %s given', get_debug_type($res)));
    }

    return (int) $res;
}