diff --git a/Sources/API/composer.json b/Sources/API/composer.json index 6addf56..dd5a46e 100644 --- a/Sources/API/composer.json +++ b/Sources/API/composer.json @@ -2,6 +2,7 @@ "require": { "slim/slim": "4.*", "slim/psr7": "^1.6", - "zircote/swagger-php": "^4.5" + "zircote/swagger-php": "^4.5", + "doctrine/annotations": "^1.14" } } diff --git a/Sources/API/composer.lock b/Sources/API/composer.lock index acf5477..e734c16 100644 --- a/Sources/API/composer.lock +++ b/Sources/API/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "07907c3d50700ee017ad7949856672cc", + "content-hash": "4ce9f1d66c47bb3eda2eab2ef793483c", "packages": [ { "name": "doctrine/annotations", - "version": "1.14.0", + "version": "1.14.1", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "3587ab58646bc515b2e03bbd3cfcd3682e8df5bf" + "reference": "9e034d7a70032d422169f27d8759e8d84abb4f51" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/3587ab58646bc515b2e03bbd3cfcd3682e8df5bf", - "reference": "3587ab58646bc515b2e03bbd3cfcd3682e8df5bf", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/9e034d7a70032d422169f27d8759e8d84abb4f51", + "reference": "9e034d7a70032d422169f27d8759e8d84abb4f51", "shasum": "" }, "require": { @@ -78,9 +78,9 @@ ], "support": { "issues": "https://github.com/doctrine/annotations/issues", - "source": "https://github.com/doctrine/annotations/tree/1.14.0" + "source": "https://github.com/doctrine/annotations/tree/1.14.1" }, - "time": "2022-12-11T18:25:48+00:00" + "time": "2022-12-12T12:46:12+00:00" }, { "name": "doctrine/deprecations", diff --git a/Sources/API/documentation/api.php b/Sources/API/documentation/api.php deleted file mode 100644 index c2daa3d..0000000 --- a/Sources/API/documentation/api.php +++ /dev/null @@ -1,6 +0,0 @@ -toJSON(); -?> \ No newline at end of file diff --git a/Sources/API/routes/Inscrit.php b/Sources/API/routes/Inscrit.php index b255635..54ebb12 100644 --- a/Sources/API/routes/Inscrit.php +++ b/Sources/API/routes/Inscrit.php @@ -137,5 +137,5 @@ $app->post('/Inscrit/add/', function(Request $request, Response $response, array ->withHeader('content-type', 'application/json') ->withStatus(500); } -}) +}); ?> \ No newline at end of file diff --git a/Sources/API/vendor/composer/autoload_files.php b/Sources/API/vendor/composer/autoload_files.php index a9948aa..33fe5e4 100644 --- a/Sources/API/vendor/composer/autoload_files.php +++ b/Sources/API/vendor/composer/autoload_files.php @@ -7,8 +7,8 @@ $baseDir = dirname($vendorDir); return array( '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', - 'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php', '320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php', + 'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php', '253c157292f75eb38082b5acb06f3f01' => $vendorDir . '/nikic/fast-route/src/functions.php', '6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php', ); diff --git a/Sources/API/vendor/composer/autoload_static.php b/Sources/API/vendor/composer/autoload_static.php index b5ab53d..c7f3e89 100644 --- a/Sources/API/vendor/composer/autoload_static.php +++ b/Sources/API/vendor/composer/autoload_static.php @@ -8,8 +8,8 @@ class ComposerStaticInita934429c0ea4f4482346c5d296943a81 { public static $files = array ( '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', - 'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php', '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', + 'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php', '253c157292f75eb38082b5acb06f3f01' => __DIR__ . '/..' . '/nikic/fast-route/src/functions.php', '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php', ); diff --git a/Sources/API/vendor/composer/installed.json b/Sources/API/vendor/composer/installed.json index 34e0075..b8e016a 100644 --- a/Sources/API/vendor/composer/installed.json +++ b/Sources/API/vendor/composer/installed.json @@ -2,17 +2,17 @@ "packages": [ { "name": "doctrine/annotations", - "version": "1.14.0", - "version_normalized": "1.14.0.0", + "version": "1.14.1", + "version_normalized": "1.14.1.0", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "3587ab58646bc515b2e03bbd3cfcd3682e8df5bf" + "reference": "9e034d7a70032d422169f27d8759e8d84abb4f51" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/3587ab58646bc515b2e03bbd3cfcd3682e8df5bf", - "reference": "3587ab58646bc515b2e03bbd3cfcd3682e8df5bf", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/9e034d7a70032d422169f27d8759e8d84abb4f51", + "reference": "9e034d7a70032d422169f27d8759e8d84abb4f51", "shasum": "" }, "require": { @@ -32,7 +32,7 @@ "suggest": { "php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations" }, - "time": "2022-12-11T18:25:48+00:00", + "time": "2022-12-12T12:46:12+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -75,7 +75,7 @@ ], "support": { "issues": "https://github.com/doctrine/annotations/issues", - "source": "https://github.com/doctrine/annotations/tree/1.14.0" + "source": "https://github.com/doctrine/annotations/tree/1.14.1" }, "install-path": "../doctrine/annotations" }, diff --git a/Sources/API/vendor/composer/installed.php b/Sources/API/vendor/composer/installed.php index 60cf54c..d8400d0 100644 --- a/Sources/API/vendor/composer/installed.php +++ b/Sources/API/vendor/composer/installed.php @@ -5,7 +5,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => 'f8caddc10d70975a9f687fac5d007b340a7a8699', + 'reference' => '0d6979f482a4dc4159775749125b647077c1dbcd', 'name' => '__root__', 'dev' => true, ), @@ -16,16 +16,16 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => 'f8caddc10d70975a9f687fac5d007b340a7a8699', + 'reference' => '0d6979f482a4dc4159775749125b647077c1dbcd', 'dev_requirement' => false, ), 'doctrine/annotations' => array( - 'pretty_version' => '1.14.0', - 'version' => '1.14.0.0', + 'pretty_version' => '1.14.1', + 'version' => '1.14.1.0', 'type' => 'library', 'install_path' => __DIR__ . '/../doctrine/annotations', 'aliases' => array(), - 'reference' => '3587ab58646bc515b2e03bbd3cfcd3682e8df5bf', + 'reference' => '9e034d7a70032d422169f27d8759e8d84abb4f51', 'dev_requirement' => false, ), 'doctrine/deprecations' => array( diff --git a/Sources/API/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php b/Sources/API/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php index 7c0284b..dbf60c0 100644 --- a/Sources/API/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php +++ b/Sources/API/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php @@ -130,10 +130,14 @@ final class DocLexer extends AbstractLexer } /** @return array{value: int|string, type:self::T_*|null, position:int} */ - public function peek(): array + public function peek(): ?array { $token = parent::peek(); + if ($token === null) { + return null; + } + return (array) $token; } }