<?php
interface SqlContentEntityStorageInterface {
public function getTableMapping(array $storage_definitions = NULL);
}
class SqlContentEntityStorage implements SqlContentEntityStorageInterface {
public function getTableMapping(array $storage_definitions = NULL) {
$args = func_get_args();
if (isset($args[1])) {
$entity_type = $args[1];
print $entity_type;
}
}
}
class CustomStorage extends SqlContentEntityStorage {
public function getTableMapping(array $storage_definitions = NULL) {
parent::getTableMapping($storage_definitions);
}
}
class CustomStorageNoParent extends SqlContentEntityStorage {
public function getTableMapping(array $storage_definitions = NULL) {
}
}
(new SqlContentEntityStorage)->getTableMapping();
(new SqlContentEntityStorage)->getTableMapping([], 'node');
(new CustomStorage())->getTableMapping();
(new CustomStorageNoParent())->getTableMapping();
Deprecated: SqlContentEntityStorageInterface::getTableMapping(): Implicitly marking parameter $storage_definitions as nullable is deprecated, the explicit nullable type must be used instead in /in/jVcdq 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/jVcdq 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/jVcdq on line 20
Deprecated: CustomStorageNoParent::getTableMapping(): Implicitly marking parameter $storage_definitions as nullable is deprecated, the explicit nullable type must be used instead in /in/jVcdq on line 26
node