git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
de44444
)
fix compatibility with php 8.1
author
gggeek
<giunta.gaetano@gmail.com>
Tue, 7 Dec 2021 11:40:06 +0000
(11:40 +0000)
committer
gggeek
<giunta.gaetano@gmail.com>
Tue, 7 Dec 2021 11:40:06 +0000
(11:40 +0000)
src/Value.php
patch
|
blob
|
history
diff --git
a/src/Value.php
b/src/Value.php
index
1e7e288
..
ec43fc1
100644
(file)
--- a/
src/Value.php
+++ b/
src/Value.php
@@
-518,6
+518,7
@@
class Value implements \Countable, \IteratorAggregate, \ArrayAccess
*
* @return integer
*/
*
* @return integer
*/
+ #[\ReturnTypeWillChange]
public function count()
{
switch ($this->mytype) {
public function count()
{
switch ($this->mytype) {
@@
-538,6
+539,7
@@
class Value implements \Countable, \IteratorAggregate, \ArrayAccess
* @return \ArrayIterator
* @internal required to be public to implement an Interface
*/
* @return \ArrayIterator
* @internal required to be public to implement an Interface
*/
+ #[\ReturnTypeWillChange]
public function getIterator()
{
switch ($this->mytype) {
public function getIterator()
{
switch ($this->mytype) {
@@
-558,6
+560,7
@@
class Value implements \Countable, \IteratorAggregate, \ArrayAccess
* @param mixed $value
* @throws \Exception
*/
* @param mixed $value
* @throws \Exception
*/
+ #[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
switch ($this->mytype) {
public function offsetSet($offset, $value)
{
switch ($this->mytype) {
@@
-603,6
+606,7
@@
class Value implements \Countable, \IteratorAggregate, \ArrayAccess
* @param mixed $offset
* @return bool
*/
* @param mixed $offset
* @return bool
*/
+ #[\ReturnTypeWillChange]
public function offsetExists($offset)
{
switch ($this->mytype) {
public function offsetExists($offset)
{
switch ($this->mytype) {
@@
-623,6
+627,7
@@
class Value implements \Countable, \IteratorAggregate, \ArrayAccess
* @param mixed $offset
* @throws \Exception
*/
* @param mixed $offset
* @throws \Exception
*/
+ #[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
switch ($this->mytype) {
public function offsetUnset($offset)
{
switch ($this->mytype) {
@@
-646,6
+651,7
@@
class Value implements \Countable, \IteratorAggregate, \ArrayAccess
* @return mixed|Value|null
* @throws \Exception
*/
* @return mixed|Value|null
* @throws \Exception
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
switch ($this->mytype) {
public function offsetGet($offset)
{
switch ($this->mytype) {