Метод assertValueShapes

private static

Сигнатура метода

private static function assertValueShapes(string $key, array $data): void

Возвращает: void

Описание

Refuses a key of a constant written as something the format never writes it as. Such a value used to reach the constructor and be answered by a TypeError about its arguments instead of by the format - the same silence the closed list of keys removed. An explicit null is refused with the rest: the format tells the absence of a key from a value, so null is a value here and not a way of saying nothing. Every key of the level is asked about, the flags and the lang keys included: a flag written as a string reached the constructor and answered with a TypeError, and a flag written as null was read as the key standing nowhere - 'multiple' became false, and 'show_in_wizard' fell through to its alias and became true.

Параметры

2
Имя Тип По умолчанию Флаги
$key string —
—
$data array —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/AI/Agent/Generator/AgentConfig/ConstantConfig.php
Расположение метода в файле
Строки 167–205

Исходный код

PHP