Skip to content

Commit 5db255f

Browse files
committed
Use isset()
1 parent e8d0a9e commit 5db255f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/resources/ElementResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function __construct(array $config = [])
9393
*/
9494
public function init(): void
9595
{
96-
if ($this->elementType === null || !is_subclass_of($this->elementType, ElementInterface::class)) {
96+
if (!isset($this->elementType) || !is_subclass_of($this->elementType, ElementInterface::class)) {
9797
throw new InvalidConfigException('Endpoint has an invalid elementType');
9898
}
9999

0 commit comments

Comments
 (0)