diff --git a/app/Models/Company.php b/app/Models/Company.php index 8285b43b43ee..15c9b94336e7 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -519,7 +519,7 @@ class Company extends BaseModel public function owner() { - return $this->company_users()->withTrashed()->where('is_owner', true)->first()->user; + return $this->company_users()->withTrashed()->where('is_owner', true)->first()?->user; } public function resolveRouteBinding($value, $field = null) diff --git a/composer.json b/composer.json index 70f7bcefd856..d20a92d9ffec 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "ext-json": "*", "ext-libxml": "*", "afosto/yaac": "^1.4", - "asm/php-ansible": "^4", + "asm/php-ansible": "^4.0", "authorizenet/authorizenet": "^2.0", "awobaz/compoships": "^2.1", "bacon/bacon-qr-code": "^2.0", @@ -162,4 +162,4 @@ }, "minimum-stability": "dev", "prefer-stable": true -} +} \ No newline at end of file diff --git a/composer.lock b/composer.lock index 0c7dab925c33..53fa097b1ebf 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": "bbd6f8107bd70628ea7527c968ca3c8d", + "content-hash": "dd251d0b8181fc819aded8d8d5c6bb07", "packages": [ { "name": "afosto/yaac", @@ -378,16 +378,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.231.15", + "version": "3.231.16", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "ba379285d24b609a997bd8b40933d3e0a3826dfb" + "reference": "c50adea1de4ad3d6dda41310a8af5ce13ee876d5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/ba379285d24b609a997bd8b40933d3e0a3826dfb", - "reference": "ba379285d24b609a997bd8b40933d3e0a3826dfb", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/c50adea1de4ad3d6dda41310a8af5ce13ee876d5", + "reference": "c50adea1de4ad3d6dda41310a8af5ce13ee876d5", "shasum": "" }, "require": { @@ -464,9 +464,9 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.231.15" + "source": "https://github.com/aws/aws-sdk-php/tree/3.231.16" }, - "time": "2022-07-27T18:59:36+00:00" + "time": "2022-07-28T18:17:24+00:00" }, { "name": "bacon/bacon-qr-code", @@ -7438,16 +7438,16 @@ }, { "name": "psy/psysh", - "version": "v0.11.7", + "version": "v0.11.8", "source": { "type": "git", "url": "https://github.com/bobthecow/psysh.git", - "reference": "77fc7270031fbc28f9a7bea31385da5c4855cb7a" + "reference": "f455acf3645262ae389b10e9beba0c358aa6994e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bobthecow/psysh/zipball/77fc7270031fbc28f9a7bea31385da5c4855cb7a", - "reference": "77fc7270031fbc28f9a7bea31385da5c4855cb7a", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/f455acf3645262ae389b10e9beba0c358aa6994e", + "reference": "f455acf3645262ae389b10e9beba0c358aa6994e", "shasum": "" }, "require": { @@ -7508,9 +7508,9 @@ ], "support": { "issues": "https://github.com/bobthecow/psysh/issues", - "source": "https://github.com/bobthecow/psysh/tree/v0.11.7" + "source": "https://github.com/bobthecow/psysh/tree/v0.11.8" }, - "time": "2022-07-07T13:49:11+00:00" + "time": "2022-07-28T14:25:11+00:00" }, { "name": "ralouphie/getallheaders", @@ -16461,16 +16461,16 @@ }, { "name": "vimeo/psalm", - "version": "4.24.0", + "version": "v4.25.0", "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "06dd975cb55d36af80f242561738f16c5f58264f" + "reference": "d7cd84c4ebca74ba3419b9601f81d177bcbe2aac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/06dd975cb55d36af80f242561738f16c5f58264f", - "reference": "06dd975cb55d36af80f242561738f16c5f58264f", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/d7cd84c4ebca74ba3419b9601f81d177bcbe2aac", + "reference": "d7cd84c4ebca74ba3419b9601f81d177bcbe2aac", "shasum": "" }, "require": { @@ -16562,9 +16562,9 @@ ], "support": { "issues": "https://github.com/vimeo/psalm/issues", - "source": "https://github.com/vimeo/psalm/tree/4.24.0" + "source": "https://github.com/vimeo/psalm/tree/v4.25.0" }, - "time": "2022-06-26T11:47:54+00:00" + "time": "2022-07-25T17:04:37+00:00" }, { "name": "webmozart/path-util", @@ -16707,5 +16707,5 @@ "platform-dev": { "php": "^7.4|^8.0" }, - "plugin-api-version": "2.1.0" + "plugin-api-version": "2.3.0" }