Issue #3300404 by DavorHorvacki, Eduardo Morales Alberti, akoe, wranvaud, taras.suliatitskiy: Unserialize(): Passing null to parameter #1 ($data) of type string is deprecated in Drupal\Core\Entity\Sql\SqlContentEntityStorage::loadFromSharedTables()
1 unresolved thread
Merge request reports
Activity
added 89 commits
-
0f9e0f61...4acd1d09 - 84 commits from branch
project:11.x
- 27f7f0b3 - Issue #3300404 by DavorHorvacki, Eduardo Morales Alberti, akoe, wranvaud,...
- bf19fd3b - Issue #3300404 by DavorHorvacki, Eduardo Morales Alberti, akoe, wranvaud,...
- 8db7048c - Issue #3300404 by DavorHorvacki, Eduardo Morales Alberti, akoe, wranvaud,...
- 1b78816c - Issue #3300404: code style
- 0e894db1 - Introduce SqlContentEntityStorage::safeUnserialize and use it
Toggle commit list-
0f9e0f61...4acd1d09 - 84 commits from branch
added 1 commit
- 9b79df45 - Introduce SqlContentEntityStorage::safeUnserialize and use it
added 1 commit
- 99d524a2 - Introduce SqlContentEntityStorage::safeUnserialize and use it
added 1 commit
- c488ebf3 - Introduce SqlContentEntityStorage::safeUnserialize and use it
- Resolved by Stephen Mustgrave
- Resolved by Stephen Mustgrave
- Resolved by Stephen Mustgrave
- Resolved by Stephen Mustgrave
- Resolved by Stephen Mustgrave
added 848 commits
-
1e51844b...78ec304c - 842 commits from branch
project:11.x
- 864531ea - Issue #3300404 by DavorHorvacki, Eduardo Morales Alberti, akoe, wranvaud,...
- f90ee4c1 - Issue #3300404 by DavorHorvacki, Eduardo Morales Alberti, akoe, wranvaud,...
- a5d3565c - Issue #3300404 by DavorHorvacki, Eduardo Morales Alberti, akoe, wranvaud,...
- f4c165aa - Issue #3300404: code style
- 5b402c6b - Introduce SqlContentEntityStorage::safeUnserialize and use it
- 754eeb79 - Apply 4 suggestion(s) to 3 file(s)
Toggle commit list-
1e51844b...78ec304c - 842 commits from branch
1786 1786 return $as_bool ? (bool) $count : (int) $count; 1787 1787 } 1788 1788 1789 /** 1790 * Safely unserializes data. 1791 * 1792 * @param mixed|null $value 1793 * The serialized value. 1794 * 1795 * @return mixed|null 1796 * The unserialized data, or null if the data is invalid. 1797 */ 1798 public static function safeUnserialize(mixed $value): mixed { this probably shouldn't be public inside the storage, it's not a meant to be a public api?
Somewhat related issue: https://www.drupal.org/project/drupal/issues/3421234, which is making a similar change to the PHPSerilaize serializer, we could use that, but that will throw an exception. I'm not sure if we should silently drop invalid values
Please register or sign in to reply