Commit d218bf6
committed
[BUGFIX] Avoid using null as array key in extbase
Using `NULL` as array key is converted to an empty
string in PHP and is deprecated since PHP8.5.0,
honored with following `E_DEPRECATED` error:
Using null as an array offset is deprecated,
use an empty string instead
Extbase `\TYPO3\CMS\Extbase\Persistence\Generic\Backend` is
modified now to mitigate using `NULL` as possible array key
in following methods:
* `Backend::insertRelationInRelationtable()`
* `Backend::updateRelationInRelationTable()`
* `Backend::deleteAllRelationsFromRelationtable()`
* `Backend::deleteRelationFromRelationtable()`
Resolves: #108347
Releases: main, 13.4, 12.4
Change-Id: I0d3fdeac05f48a5164125d2671ffc02d1d050937
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/91911
Tested-by: Stefan Bürk <[email protected]>
Tested-by: Anja Leichsenring <[email protected]>
Reviewed-by: Christian Kuhn <[email protected]>
Reviewed-by: Stefan Bürk <[email protected]>
Tested-by: Christian Kuhn <[email protected]>
Tested-by: core-ci <[email protected]>
Reviewed-by: Anja Leichsenring <[email protected]>
Reviewed-by: Oliver Klee <[email protected]>Backend
1 parent 0c62b2d commit d218bf6
File tree
1 file changed
+31
-17
lines changed- typo3/sysext/extbase/Classes/Persistence/Generic
1 file changed
+31
-17
lines changedLines changed: 31 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
623 | 628 | | |
624 | 629 | | |
625 | 630 | | |
| |||
641 | 646 | | |
642 | 647 | | |
643 | 648 | | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
649 | 659 | | |
650 | 660 | | |
651 | 661 | | |
| |||
664 | 674 | | |
665 | 675 | | |
666 | 676 | | |
667 | | - | |
668 | | - | |
669 | | - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
670 | 681 | | |
671 | 682 | | |
672 | 683 | | |
| |||
683 | 694 | | |
684 | 695 | | |
685 | 696 | | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
690 | 704 | | |
691 | 705 | | |
692 | 706 | | |
| |||
0 commit comments