From 415aa7e8de04c16fb6828ef1984bd4e2978fb5bd Mon Sep 17 00:00:00 2001 From: Roly Gutierrez Date: Wed, 5 Feb 2025 18:15:12 -0400 Subject: [PATCH] FOUR-21803 Fix failing unit tests ## Description Tests\Unit\JwtServiceTest::testGenerateToken ErrorException: Undefined array key "company_name" ## Related Tickets & Packages https://processmaker.atlassian.net/browse/FOUR-21803 ##Solution Downgrade lcobucci/jwt ^5.4 to lcobucci/jwt ^4.2, Our implementation is not compatible with version ^5.4. --- composer.json | 2 +- composer.lock | 149 +++++++++++++++++++++++++------------------------- 2 files changed, 76 insertions(+), 75 deletions(-) diff --git a/composer.json b/composer.json index ba2b8c2c20..28abfbf913 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "laravel/tinker": "^2.10", "laravel/ui": "^4.6", "lavary/laravel-menu": "^1.8", - "lcobucci/jwt": "^5.4", + "lcobucci/jwt": "^4.2", "league/flysystem-aws-s3-v3": "^3.29", "mateusjunges/laravel-kafka": "^2.4", "microsoft/microsoft-graph": "^2.8", diff --git a/composer.lock b/composer.lock index e19fea0b6b..fa3b4c71d6 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "fc0669d60621020d578e346f3c31c36c", + "content-hash": "1e1da9f4cba1baffce32491d953e1402", "packages": [ { "name": "aws/aws-crt-php", @@ -62,16 +62,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.339.1", + "version": "3.339.7", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "3675e58c8fa971f4b4a24e7b0bee8673bda1ba00" + "reference": "7b7e48ce7970c0416c5fda045df7b93948fbf643" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/3675e58c8fa971f4b4a24e7b0bee8673bda1ba00", - "reference": "3675e58c8fa971f4b4a24e7b0bee8673bda1ba00", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/7b7e48ce7970c0416c5fda045df7b93948fbf643", + "reference": "7b7e48ce7970c0416c5fda045df7b93948fbf643", "shasum": "" }, "require": { @@ -154,9 +154,9 @@ "support": { "forum": "https://github.com/aws/aws-sdk-php/discussions", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.339.1" + "source": "https://github.com/aws/aws-sdk-php/tree/3.339.7" }, - "time": "2025-01-28T19:05:47+00:00" + "time": "2025-02-05T19:06:15+00:00" }, { "name": "babenkoivan/elastic-adapter", @@ -2030,16 +2030,16 @@ }, { "name": "google/apiclient-services", - "version": "v0.392.0", + "version": "v0.393.0", "source": { "type": "git", "url": "https://github.com/googleapis/google-api-php-client-services.git", - "reference": "a74c2790865bd1f06c0a49460ef1c0edb0be0e7e" + "reference": "ed24c09584df8ef0cdcfb9d4305abf66fc17e609" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/a74c2790865bd1f06c0a49460ef1c0edb0be0e7e", - "reference": "a74c2790865bd1f06c0a49460ef1c0edb0be0e7e", + "url": "https://api.github.com/repos/googleapis/google-api-php-client-services/zipball/ed24c09584df8ef0cdcfb9d4305abf66fc17e609", + "reference": "ed24c09584df8ef0cdcfb9d4305abf66fc17e609", "shasum": "" }, "require": { @@ -2068,22 +2068,22 @@ ], "support": { "issues": "https://github.com/googleapis/google-api-php-client-services/issues", - "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.392.0" + "source": "https://github.com/googleapis/google-api-php-client-services/tree/v0.393.0" }, - "time": "2025-01-27T01:10:20+00:00" + "time": "2025-02-03T00:54:21+00:00" }, { "name": "google/auth", - "version": "v1.45.2", + "version": "v1.45.3", "source": { "type": "git", "url": "https://github.com/googleapis/google-auth-library-php.git", - "reference": "bf86c992aba9452584cb0c63afd52cc1f6a27ccc" + "reference": "000d9439f430c6e56cba105c5ab750f5f7d69ea8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/bf86c992aba9452584cb0c63afd52cc1f6a27ccc", - "reference": "bf86c992aba9452584cb0c63afd52cc1f6a27ccc", + "url": "https://api.github.com/repos/googleapis/google-auth-library-php/zipball/000d9439f430c6e56cba105c5ab750f5f7d69ea8", + "reference": "000d9439f430c6e56cba105c5ab750f5f7d69ea8", "shasum": "" }, "require": { @@ -2129,9 +2129,9 @@ "support": { "docs": "https://googleapis.github.io/google-auth-library-php/main/", "issues": "https://github.com/googleapis/google-auth-library-php/issues", - "source": "https://github.com/googleapis/google-auth-library-php/tree/v1.45.2" + "source": "https://github.com/googleapis/google-auth-library-php/tree/v1.45.3" }, - "time": "2025-01-28T21:56:26+00:00" + "time": "2025-01-29T18:17:08+00:00" }, { "name": "graham-campbell/result-type", @@ -2522,16 +2522,16 @@ }, { "name": "guzzlehttp/uri-template", - "version": "v1.0.3", + "version": "v1.0.4", "source": { "type": "git", "url": "https://github.com/guzzle/uri-template.git", - "reference": "ecea8feef63bd4fef1f037ecb288386999ecc11c" + "reference": "30e286560c137526eccd4ce21b2de477ab0676d2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/uri-template/zipball/ecea8feef63bd4fef1f037ecb288386999ecc11c", - "reference": "ecea8feef63bd4fef1f037ecb288386999ecc11c", + "url": "https://api.github.com/repos/guzzle/uri-template/zipball/30e286560c137526eccd4ce21b2de477ab0676d2", + "reference": "30e286560c137526eccd4ce21b2de477ab0676d2", "shasum": "" }, "require": { @@ -2588,7 +2588,7 @@ ], "support": { "issues": "https://github.com/guzzle/uri-template/issues", - "source": "https://github.com/guzzle/uri-template/tree/v1.0.3" + "source": "https://github.com/guzzle/uri-template/tree/v1.0.4" }, "funding": [ { @@ -2604,7 +2604,7 @@ "type": "tidelift" } ], - "time": "2023-12-03T19:50:20+00:00" + "time": "2025-02-03T10:55:03+00:00" }, { "name": "igaster/laravel-theme", @@ -2806,16 +2806,16 @@ }, { "name": "laravel/framework", - "version": "v11.41.0", + "version": "v11.41.3", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "42d6ae000c868c2abfa946da46702f2358493482" + "reference": "3ef433d5865f30a19b6b1be247586068399b59cc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/42d6ae000c868c2abfa946da46702f2358493482", - "reference": "42d6ae000c868c2abfa946da46702f2358493482", + "url": "https://api.github.com/repos/laravel/framework/zipball/3ef433d5865f30a19b6b1be247586068399b59cc", + "reference": "3ef433d5865f30a19b6b1be247586068399b59cc", "shasum": "" }, "require": { @@ -3017,7 +3017,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2025-01-28T15:22:55+00:00" + "time": "2025-01-30T13:25:22+00:00" }, { "name": "laravel/horizon", @@ -3774,38 +3774,39 @@ }, { "name": "lcobucci/jwt", - "version": "5.5.0", + "version": "4.3.0", "source": { "type": "git", "url": "https://github.com/lcobucci/jwt.git", - "reference": "a835af59b030d3f2967725697cf88300f579088e" + "reference": "4d7de2fe0d51a96418c0d04004986e410e87f6b4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/lcobucci/jwt/zipball/a835af59b030d3f2967725697cf88300f579088e", - "reference": "a835af59b030d3f2967725697cf88300f579088e", + "url": "https://api.github.com/repos/lcobucci/jwt/zipball/4d7de2fe0d51a96418c0d04004986e410e87f6b4", + "reference": "4d7de2fe0d51a96418c0d04004986e410e87f6b4", "shasum": "" }, "require": { + "ext-hash": "*", + "ext-json": "*", + "ext-mbstring": "*", "ext-openssl": "*", "ext-sodium": "*", - "php": "~8.2.0 || ~8.3.0 || ~8.4.0", - "psr/clock": "^1.0" + "lcobucci/clock": "^2.0 || ^3.0", + "php": "^7.4 || ^8.0" }, "require-dev": { - "infection/infection": "^0.29", - "lcobucci/clock": "^3.2", - "lcobucci/coding-standard": "^11.0", + "infection/infection": "^0.21", + "lcobucci/coding-standard": "^6.0", + "mikey179/vfsstream": "^1.6.7", "phpbench/phpbench": "^1.2", - "phpstan/extension-installer": "^1.2", - "phpstan/phpstan": "^1.10.7", - "phpstan/phpstan-deprecation-rules": "^1.1.3", - "phpstan/phpstan-phpunit": "^1.3.10", - "phpstan/phpstan-strict-rules": "^1.5.0", - "phpunit/phpunit": "^11.1" - }, - "suggest": { - "lcobucci/clock": ">= 3.2" + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-deprecation-rules": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", + "phpstan/phpstan-strict-rules": "^1.0", + "phpunit/php-invoker": "^3.1", + "phpunit/phpunit": "^9.5" }, "type": "library", "autoload": { @@ -3831,7 +3832,7 @@ ], "support": { "issues": "https://github.com/lcobucci/jwt/issues", - "source": "https://github.com/lcobucci/jwt/tree/5.5.0" + "source": "https://github.com/lcobucci/jwt/tree/4.3.0" }, "funding": [ { @@ -3843,7 +3844,7 @@ "type": "patreon" } ], - "time": "2025-01-26T21:29:45+00:00" + "time": "2023-01-02T13:28:00+00:00" }, { "name": "league/commonmark", @@ -5441,16 +5442,16 @@ }, { "name": "microsoft/microsoft-graph", - "version": "v2.24.0", + "version": "v2.25.0", "source": { "type": "git", "url": "https://github.com/microsoftgraph/msgraph-sdk-php.git", - "reference": "ea80b011f76397d69f4961484f2b131d7f20620a" + "reference": "b421ce6b9410fdb52d21eacb15008ba28155998f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/microsoftgraph/msgraph-sdk-php/zipball/ea80b011f76397d69f4961484f2b131d7f20620a", - "reference": "ea80b011f76397d69f4961484f2b131d7f20620a", + "url": "https://api.github.com/repos/microsoftgraph/msgraph-sdk-php/zipball/b421ce6b9410fdb52d21eacb15008ba28155998f", + "reference": "b421ce6b9410fdb52d21eacb15008ba28155998f", "shasum": "" }, "require": { @@ -5482,9 +5483,9 @@ "homepage": "https://developer.microsoft.com/en-us/graph", "support": { "issues": "https://github.com/microsoftgraph/msgraph-sdk-php/issues", - "source": "https://github.com/microsoftgraph/msgraph-sdk-php/tree/v2.24.0" + "source": "https://github.com/microsoftgraph/msgraph-sdk-php/tree/v2.25.0" }, - "time": "2025-01-24T13:21:16+00:00" + "time": "2025-01-30T13:44:27+00:00" }, { "name": "microsoft/microsoft-graph-core", @@ -9699,16 +9700,16 @@ }, { "name": "spatie/laravel-html", - "version": "3.11.1", + "version": "3.11.2", "source": { "type": "git", "url": "https://github.com/spatie/laravel-html.git", - "reference": "167e5b8243103072155b562e5cc396c90a3c1055" + "reference": "248508f3ed50e6538707fc54a4b3b23fb53e8045" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-html/zipball/167e5b8243103072155b562e5cc396c90a3c1055", - "reference": "167e5b8243103072155b562e5cc396c90a3c1055", + "url": "https://api.github.com/repos/spatie/laravel-html/zipball/248508f3ed50e6538707fc54a4b3b23fb53e8045", + "reference": "248508f3ed50e6538707fc54a4b3b23fb53e8045", "shasum": "" }, "require": { @@ -9765,7 +9766,7 @@ "spatie" ], "support": { - "source": "https://github.com/spatie/laravel-html/tree/3.11.1" + "source": "https://github.com/spatie/laravel-html/tree/3.11.2" }, "funding": [ { @@ -9773,20 +9774,20 @@ "type": "custom" } ], - "time": "2024-10-18T14:37:21+00:00" + "time": "2025-02-05T08:27:24+00:00" }, { "name": "spatie/laravel-medialibrary", - "version": "11.12.1", + "version": "11.12.2", "source": { "type": "git", "url": "https://github.com/spatie/laravel-medialibrary.git", - "reference": "8372552a74e781dbcb70ab8b7d0cc9c520b41daa" + "reference": "735127e4d2a61862bd67d0bdfa6ed87528948ace" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-medialibrary/zipball/8372552a74e781dbcb70ab8b7d0cc9c520b41daa", - "reference": "8372552a74e781dbcb70ab8b7d0cc9c520b41daa", + "url": "https://api.github.com/repos/spatie/laravel-medialibrary/zipball/735127e4d2a61862bd67d0bdfa6ed87528948ace", + "reference": "735127e4d2a61862bd67d0bdfa6ed87528948ace", "shasum": "" }, "require": { @@ -9870,7 +9871,7 @@ ], "support": { "issues": "https://github.com/spatie/laravel-medialibrary/issues", - "source": "https://github.com/spatie/laravel-medialibrary/tree/11.12.1" + "source": "https://github.com/spatie/laravel-medialibrary/tree/11.12.2" }, "funding": [ { @@ -9882,7 +9883,7 @@ "type": "github" } ], - "time": "2025-01-13T16:29:49+00:00" + "time": "2025-02-05T08:23:50+00:00" }, { "name": "spatie/laravel-package-tools", @@ -15079,16 +15080,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.5.43", + "version": "10.5.44", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "fb117a8772c14fdc41acb1ded0de44de0c9091f9" + "reference": "1381c62769be4bb88fa4c5aec1366c7c66ca4f36" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/fb117a8772c14fdc41acb1ded0de44de0c9091f9", - "reference": "fb117a8772c14fdc41acb1ded0de44de0c9091f9", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1381c62769be4bb88fa4c5aec1366c7c66ca4f36", + "reference": "1381c62769be4bb88fa4c5aec1366c7c66ca4f36", "shasum": "" }, "require": { @@ -15160,7 +15161,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.43" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.44" }, "funding": [ { @@ -15176,7 +15177,7 @@ "type": "tidelift" } ], - "time": "2025-01-29T13:59:45+00:00" + "time": "2025-01-31T07:00:38+00:00" }, { "name": "sebastian/cli-parser",