3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface SqlContentEntityStorageInterface { public function getTableMapping(array $storage_definitions = NULL); } class SqlContentEntityStorage implements SqlContentEntityStorageInterface { public function getTableMapping(array $storage_definitions = NULL, $entity_type = NULL) { } } class CustomStorage extends SqlContentEntityStorage { public function getTableMapping(array $storage_definitions = NULL) { } } $c = new CustomStorage();
Output for 8.4.1 - 8.4.13
Deprecated: SqlContentEntityStorageInterface::getTableMapping(): Implicitly marking parameter $storage_definitions as nullable is deprecated, the explicit nullable type must be used instead in /in/kZUBW on line 5 Deprecated: SqlContentEntityStorage::getTableMapping(): Implicitly marking parameter $storage_definitions as nullable is deprecated, the explicit nullable type must be used instead in /in/kZUBW on line 10 Deprecated: CustomStorage::getTableMapping(): Implicitly marking parameter $storage_definitions as nullable is deprecated, the explicit nullable type must be used instead in /in/kZUBW on line 16 Fatal error: Declaration of CustomStorage::getTableMapping(?array $storage_definitions = null) must be compatible with SqlContentEntityStorage::getTableMapping(?array $storage_definitions = null, $entity_type = null) in /in/kZUBW on line 16
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.26
Fatal error: Declaration of CustomStorage::getTableMapping(?array $storage_definitions = null) must be compatible with SqlContentEntityStorage::getTableMapping(?array $storage_definitions = null, $entity_type = null) in /in/kZUBW on line 16
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Fatal error: Declaration of CustomStorage::getTableMapping(?array $storage_definitions = NULL) must be compatible with SqlContentEntityStorage::getTableMapping(?array $storage_definitions = NULL, $entity_type = NULL) in /in/kZUBW on line 16
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
Fatal error: Declaration of CustomStorage::getTableMapping(?array $storage_definitions = NULL) must be compatible with SqlContentEntityStorage::getTableMapping(?array $storage_definitions = NULL, $entity_type = NULL) in /in/kZUBW on line 15
Process exited with code 255.
Output for 7.1.0 - 7.1.33

preferences:
118.19 ms | 412 KiB | 5 Q