1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Use null safe operators

This commit is contained in:
David Bomba 2022-07-29 12:12:24 +10:00
parent 3a510ffd4a
commit 63a7fd35f3
3 changed files with 23 additions and 23 deletions

View File

@ -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)

View File

@ -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
}
}

40
composer.lock generated
View File

@ -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"
}