PeServer

ArrayAccessHelper
in package

AbstractYes

Table of Contents

Methods

offsetExistsUInt()  : bool
ArrayAccess::offsetExists で non-negative-int に限定
offsetGetUInt()  : void
ArrayAccess::offsetGet で non-negative-int に限定(失敗時は例外)

Methods

offsetExistsUInt()

ArrayAccess::offsetExists で non-negative-int に限定

public static offsetExistsUInt(mixed $offset) : bool
Parameters
$offset : mixed
Tags
phpstan-assert-if-true

non-negative-int $offset

Return values
bool

$offsetが有効

offsetGetUInt()

ArrayAccess::offsetGet で non-negative-int に限定(失敗時は例外)

public static offsetGetUInt(mixed $offset) : void
Parameters
$offset : mixed
Tags
throws
TypeError

型がもうダメ。

throws
IndexOutOfRangeException

範囲外。

phpstan-assert

non-negative-int $offset


        
On this page

Search results