Changeset View
Changeset View
Standalone View
Standalone View
src/object/Phobject.php
<?php | x<?php | ||||
/** | /** | ||||
* Base class for libphutil objects. Enforces stricter object semantics than | * Base class for libphutil objects. Enforces stricter object semantics than | ||||
Context not available. | |||||
get_class($this).'::'.$name)); | get_class($this).'::'.$name)); | ||||
} | } | ||||
#[\ReturnTypeWillChange] | |||||
public function current() { | public function current() { | ||||
$this->throwOnAttemptedIteration(); | $this->throwOnAttemptedIteration(); | ||||
} | } | ||||
#[\ReturnTypeWillChange] | |||||
public function key() { | public function key() { | ||||
$this->throwOnAttemptedIteration(); | $this->throwOnAttemptedIteration(); | ||||
} | } | ||||
#[\ReturnTypeWillChange] | |||||
public function next() { | public function next() { | ||||
$this->throwOnAttemptedIteration(); | $this->throwOnAttemptedIteration(); | ||||
} | } | ||||
#[\ReturnTypeWillChange] | |||||
public function rewind() { | public function rewind() { | ||||
$this->throwOnAttemptedIteration(); | $this->throwOnAttemptedIteration(); | ||||
} | } | ||||
#[\ReturnTypeWillChange] | |||||
public function valid() { | public function valid() { | ||||
$this->throwOnAttemptedIteration(); | $this->throwOnAttemptedIteration(); | ||||
} | } | ||||
Context not available. | |||||
} | } | ||||
if ($byte_limit !== null) { | if ($byte_limit !== null) { | ||||
if (!is_string($const) || (strlen($const) > $byte_limit)) { | if (!is_string($const) || (@strlen($const) > $byte_limit)) { | ||||
throw new Exception( | throw new Exception( | ||||
pht( | pht( | ||||
'"%s" class "%s" has an invalid "%s" property. Field constants '. | '"%s" class "%s" has an invalid "%s" property. Field constants '. | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0