Supported Versions: PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
Finds whether a variable is null
<?php is_null(mixed $value): bool
<?php ->call('resetKeys', 'nullProp')
->assertSet('nullProp', null);
$this->assertTrue(is_null($component->nullProp));
}
<?php is_numeric($target) ||
is_string($target) ||
is_bool($target) ||
is_null($target);
}
static function getPublicPropertiesDefinedOnSubclass($target) {
<?php if ((new ReflectionClass($parameterClassName))->isEnum()) {
$enumValue = $parameterClassName::tryFrom($parameterValue);
if (is_null($enumValue)) {
throw new BackedEnumCaseNotFoundException($parameterClassName, $parameterValue);
}
<?php {
$rules = config('livewire.temporary_file_upload.rules');
if (is_null($rules)) return ['required', 'file', 'max:12288'];
if (is_array($rules)) return $rules;
<?php function _uploadErrored($name, $errorsInJson, $isMultiple) {
$this->dispatch('upload:errored', name: $name)->self();
if (is_null($errorsInJson)) {
$translator = app()->make('translator');
<?php {
$key = $this->path ?? null;
if (is_null($key)) return [];
return SupportLegacyModels::getRulesFor($context->component, $key);
}
<?php $collection->each(function ($model) use ($connection) {
if (is_null($model->getConnectionName())) {
return;
}
<?php {
$key = $this->path ?? null;
if (is_null($key)) return [];
if ($context->component) {
return SupportLegacyModels::getRulesFor($this->context->component, $key);
<?php $aliasClass = Relation::getMorphedModel($class);
if (! is_null($aliasClass)) {
$class = $aliasClass;
}
<?php $modelAlias = Relation::getMorphedModel($modelClass);
if (! is_null($modelAlias)) {
$modelClass = $modelAlias;
}
<?php $aliasClass = Relation::getMorphedModel($class);
if (! is_null($aliasClass)) {
$class = $aliasClass;
}
<?php 'Component did not perform a redirect.'
);
if (! is_null($uri)) {
PHPUnit::assertSame(url($uri), url($this->effects['redirect']));
}
<?php $fullSelector = $this->resolver->format($selector);
PHPUnit::assertTrue(
is_null($this->resolver->find($selector)),
"Element [{$fullSelector}] is present."
);
<?php $rules = [];
if (is_null($this->rule)) {
} elseif (is_array($this->rule) && count($this->rule) > 0 && ! is_numeric(array_keys($this->rule)[0])) {
<?php public function validate($rules = null, $messages = [], $attributes = [])
{
$isUsingGlobalRules = is_null($rules);
[$rules, $messages, $attributes] = $this->providedOrGlobalRulesMessagesAndAttributes($rules, $messages, $attributes);