From 78a4ea37cb570eac711521351383073faa63dd71 Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Thu, 26 Jan 2023 13:20:22 +0100 Subject: [PATCH 1/2] add relation property mapping --- src/Entities/Properties/Property.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Entities/Properties/Property.php b/src/Entities/Properties/Property.php index 6444f97..2ceb17c 100644 --- a/src/Entities/Properties/Property.php +++ b/src/Entities/Properties/Property.php @@ -177,6 +177,7 @@ private static function mapTypeToClass(string $type): string case 'files': case 'formula': case 'rollup': + case 'relation': $class = str_replace('_', '', ucwords($type, '_')); return 'FiveamCode\\LaravelNotionApi\\Entities\\Properties\\'.$class; From 44294bae6676b8c346de325765aad5a8db3335bc Mon Sep 17 00:00:00 2001 From: Shift Date: Thu, 2 Feb 2023 07:00:54 +0000 Subject: [PATCH 2/2] Bump dependencies for Laravel 10 --- composer.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index a2b6c2e..84265a0 100644 --- a/composer.json +++ b/composer.json @@ -27,10 +27,10 @@ "require": { "php": "^7.4|^8.0", "guzzlehttp/guzzle": "^7.0.1", - "illuminate/support": "^8.0|^9.0" + "illuminate/support": "^8.0|^9.0|^10.0" }, "require-dev": { - "orchestra/testbench": "^6.0", + "orchestra/testbench": "^6.0|^8.0", "phpunit/phpunit": "^9.0" }, "autoload": { @@ -48,7 +48,6 @@ "scripts": { "test": "vendor/bin/phpunit", "test-coverage": "vendor/bin/phpunit --coverage-html coverage" - }, "config": { "sort-packages": true