We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9e1947 commit 5e00647Copy full SHA for 5e00647
src/Entities/Blocks/Block.php
@@ -192,11 +192,11 @@ private static function mapTypeToClass(string $type): string
192
$class = str_replace('_', '', ucwords($type, '_'));
193
return "FiveamCode\\LaravelNotionApi\\Entities\\Blocks\\" . $class;
194
case 'heading_1':
195
- return "FiveamCode\\LaravelNotionApi\\Entities\\Blocks\\HeadingOne";
+ return HeadingOne::class;
196
case 'heading_2':
197
- return "FiveamCode\\LaravelNotionApi\\Entities\\Blocks\\HeadingTwo";
+ return HeadingTwo::class;
198
case 'heading_3':
199
- return "FiveamCode\\LaravelNotionApi\\Entities\\Blocks\\HeadingThree";
+ return HeadingThree::class;
200
default:
201
return Block::class;
202
}
0 commit comments