[MacPorts] #65421: CFPropertyList 2.0.1 error and warning in php 8.1

MacPorts noreply at macports.org
Fri Jul 1 13:45:55 UTC 2022


#65421: CFPropertyList 2.0.1 error and warning in php 8.1
--------------------+----------------------------
 Reporter:  pdvnl   |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.7.2
 Keywords:  php81   |       Port:  CFPropertyList
--------------------+----------------------------
 {{{
 Fatal error: Array and string offset access syntax with curly braces is no
 longer supported in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFBinaryPropertyList.php
 on line 804
 }}}
 ---
 {{{
 Deprecated: Return type of CFPropertyList\CFArray::current() should either
 be compatible with Iterator::current(): mixed, or the
 #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
 the notice in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFType.php
 on line 476

 Deprecated: Return type of CFPropertyList\CFArray::next() should either be
 compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange]
 attribute should be used to temporarily suppress the notice in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFType.php
 on line 496

 Deprecated: Return type of CFPropertyList\CFArray::key() should either be
 compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange]
 attribute should be used to temporarily suppress the notice in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFType.php
 on line 486

 Deprecated: Return type of CFPropertyList\CFArray::valid() should either
 be compatible with Iterator::valid(): bool, or the
 #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
 the notice in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFType.php
 on line 507

 Deprecated: Return type of CFPropertyList\CFArray::rewind() should either
 be compatible with Iterator::rewind(): void, or the
 #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
 the notice in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFType.php
 on line 466

 Deprecated: Return type of CFPropertyList\CFArray::offsetExists($key)
 should either be compatible with ArrayAccess::offsetExists(mixed $offset):
 bool, or the #[\ReturnTypeWillChange] attribute should be used to
 temporarily suppress the notice in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFType.php
 on line 523

 Deprecated: Return type of CFPropertyList\CFArray::offsetGet($key) should
 either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or
 the #[\ReturnTypeWillChange] attribute should be used to temporarily
 suppress the notice in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFType.php
 on line 535

 Deprecated: Return type of CFPropertyList\CFArray::offsetSet($key, $value)
 should either be compatible with ArrayAccess::offsetSet(mixed $offset,
 mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be
 used to temporarily suppress the notice in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFType.php
 on line 548

 Deprecated: Return type of CFPropertyList\CFArray::offsetUnset($key)
 should either be compatible with ArrayAccess::offsetUnset(mixed $offset):
 void, or the #[\ReturnTypeWillChange] attribute should be used to
 temporarily suppress the notice in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFType.php
 on line 560

 Deprecated: Return type of CFPropertyList\CFDictionary::current() should
 either be compatible with Iterator::current(): mixed, or the
 #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
 the notice in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFType.php
 on line 719

 Deprecated: Return type of CFPropertyList\CFDictionary::next() should
 either be compatible with Iterator::next(): void, or the
 #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
 the notice in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFType.php
 on line 740

 Deprecated: Return type of CFPropertyList\CFDictionary::key() should
 either be compatible with Iterator::key(): mixed, or the
 #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
 the notice in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFType.php
 on line 730

 Deprecated: Return type of CFPropertyList\CFDictionary::valid() should
 either be compatible with Iterator::valid(): bool, or the
 #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
 the notice in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFType.php
 on line 751

 Deprecated: Return type of CFPropertyList\CFDictionary::rewind() should
 either be compatible with Iterator::rewind(): void, or the
 #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
 the notice in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFType.php
 on line 707
 }}}

 same for php80.

 in php74 the now fatal error was a deprecated warning:
 {{{
 PHP Deprecated:
 Array and string offset access syntax with curly braces is deprecated in
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFBinaryPropertyList.php
 on line 804
 /opt/local/lib/php/github/CFPropertyList/classes/CFPropertyList/CFBinaryPropertyList.php
 on line 827
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65421>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list