We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8d0a9e commit 5db255fCopy full SHA for 5db255f
1 file changed
src/resources/ElementResource.php
@@ -93,7 +93,7 @@ public function __construct(array $config = [])
93
*/
94
public function init(): void
95
{
96
- if ($this->elementType === null || !is_subclass_of($this->elementType, ElementInterface::class)) {
+ if (!isset($this->elementType) || !is_subclass_of($this->elementType, ElementInterface::class)) {
97
throw new InvalidConfigException('Endpoint has an invalid elementType');
98
}
99
0 commit comments