Merge branch 'master' of github.com:akaunting/akaunting

This commit is contained in:
Cüneyt Şentürk 2021-01-27 13:23:34 +03:00
commit 5277716f97
5 changed files with 218 additions and 148 deletions

View File

@ -47,4 +47,4 @@ jobs:
run: composer test run: composer test
- name: Execute tests - name: Execute tests
run: vendor/bin/phpunit run: php artisan test --parallel

View File

@ -97,7 +97,7 @@ class Version210 extends Listener
$this->addForeignKeys(); $this->addForeignKeys();
DB::transaction(function () { DB::transaction(function () {
$this->totals = collect($this->getTotals(['invoice', 'bill', 'estimate', 'credit_note', 'debit_note'])); $this->totals = $this->getTotals(['invoice', 'bill', 'estimate', 'credit_note', 'debit_note']);
// Sort table's count by ascending to improve performance. // Sort table's count by ascending to improve performance.
foreach ($this->totals->sortBy('count') as $total) { foreach ($this->totals->sortBy('count') as $total) {
@ -105,7 +105,6 @@ class Version210 extends Listener
$this->$method(); $this->$method();
} }
$this->updateCreditNoteTransactionsTable();
$this->updateDocumentIds(); $this->updateDocumentIds();
}); });
@ -125,7 +124,7 @@ class Version210 extends Listener
private function updateInvoiceIds(): void private function updateInvoiceIds(): void
{ {
// Invoice ids do not changed // Invoice ids did not changed
if ('invoice' === $this->totals->sortByDesc('count')->pluck('type')->first()) { if ('invoice' === $this->totals->sortByDesc('count')->pluck('type')->first()) {
return; return;
} }
@ -151,7 +150,7 @@ class Version210 extends Listener
private function updateBillIds(): void private function updateBillIds(): void
{ {
// Bill ids do not changed // Bill ids did not changed
if ('bill' === $this->totals->sortByDesc('count')->pluck('type')->first()) { if ('bill' === $this->totals->sortByDesc('count')->pluck('type')->first()) {
return; return;
} }
@ -180,6 +179,7 @@ class Version210 extends Listener
$this->totals = $this->getTotals(); $this->totals = $this->getTotals();
$this->updateInvoiceIds(); $this->updateInvoiceIds();
$this->updateBillIds(); $this->updateBillIds();
$this->updateCreditNoteTransactionsTable();
$tables = [ $tables = [
'recurring' => 'recurable', 'recurring' => 'recurable',
@ -438,57 +438,29 @@ class Version210 extends Listener
return; return;
} }
$invoices = DB::table('credits_transactions') // Invoice ids did not changed
->join('invoices', 'credits_transactions.document_id', '=', 'invoices.id') if ('invoice' !== $this->totals->sortByDesc('count')->pluck('type')->first()) {
->where('credits_transactions.type', 'expense') $incrementAmount = $this->getIncrementAmount('invoice', 's');
->get(
[
'credits_transactions.id as credits_transactions_id',
'invoices.company_id',
'invoice_number',
'invoices.deleted_at',
]
);
foreach ($invoices as $invoice) { if ($incrementAmount > 0) {
$document = DB::table('documents')
->where('document_number', $invoice->invoice_number)
->where('deleted_at', $invoice->deleted_at)
->where('company_id', $invoice->company_id)
->where('type', Document::INVOICE_TYPE)
->first('id');
if ($document) {
DB::table('credits_transactions') DB::table('credits_transactions')
->where('id', $invoice->credits_transactions_id) ->where('type', 'expense')
->update(['document_id' => $document->id]); ->whereNotNull('document_id')
->where('document_id', '<>', 0)
->increment('document_id', $incrementAmount);
} }
} }
$credit_notes = DB::table('credits_transactions') // Credit Note ids did not changed
->join('credit_notes', 'credits_transactions.document_id', '=', 'credit_notes.id') if ('credit_note' !== $this->totals->sortByDesc('count')->pluck('type')->first()) {
->where('credits_transactions.type', 'income') $incrementAmount = $this->getIncrementAmount('credit_note', 's');
->get(
[
'credits_transactions.id as credits_transactions_id',
'credit_notes.company_id',
'credit_note_number',
'credit_notes.deleted_at',
]
);
foreach ($credit_notes as $credit_note) { if ($incrementAmount > 0) {
$document = DB::table('documents')
->where('document_number', $credit_note->credit_note_number)
->where('deleted_at', $credit_note->deleted_at)
->where('company_id', $credit_note->company_id)
->where('type', self::CREDIT_NOTE_TYPE)
->first('id');
if ($document) {
DB::table('credits_transactions') DB::table('credits_transactions')
->where('id', $credit_note->credits_transactions_id) ->where('type', 'income')
->update(['document_id' => $document->id]); ->whereNotNull('document_id')
->where('document_id', '<>', 0)
->increment('document_id', $incrementAmount);
} }
} }
@ -575,7 +547,13 @@ class Version210 extends Listener
->select('type', DB::raw('COUNT(id) count')) ->select('type', DB::raw('COUNT(id) count'))
->groupBy('type') ->groupBy('type')
->orderBy('id') ->orderBy('id')
->get(); ->get()
->transform(
function ($item, $key) {
$item->type = Str::replaceFirst('-', '_', $item->type);
return $item;
}
);
return $counts; return $counts;
} }

View File

@ -56,6 +56,7 @@
}, },
"require-dev": { "require-dev": {
"beyondcode/laravel-dump-server": "^1.5", "beyondcode/laravel-dump-server": "^1.5",
"brianium/paratest": "^6.1",
"facade/ignition": "^2.3", "facade/ignition": "^2.3",
"fakerphp/faker": "^1.9.1", "fakerphp/faker": "^1.9.1",
"mockery/mockery": "^1.3.1", "mockery/mockery": "^1.3.1",

281
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "c1cf72b37303a856be87365ae1a5671d", "content-hash": "b5ff7f6b82222fa71c5dee6d019a1f3c",
"packages": [ "packages": [
{ {
"name": "akaunting/firewall", "name": "akaunting/firewall",
@ -917,26 +917,26 @@
}, },
{ {
"name": "brick/math", "name": "brick/math",
"version": "0.9.1", "version": "0.9.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/brick/math.git", "url": "https://github.com/brick/math.git",
"reference": "283a40c901101e66de7061bd359252c013dcc43c" "reference": "dff976c2f3487d42c1db75a3b180e2b9f0e72ce0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/brick/math/zipball/283a40c901101e66de7061bd359252c013dcc43c", "url": "https://api.github.com/repos/brick/math/zipball/dff976c2f3487d42c1db75a3b180e2b9f0e72ce0",
"reference": "283a40c901101e66de7061bd359252c013dcc43c", "reference": "dff976c2f3487d42c1db75a3b180e2b9f0e72ce0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-json": "*", "ext-json": "*",
"php": "^7.1|^8.0" "php": "^7.1 || ^8.0"
}, },
"require-dev": { "require-dev": {
"php-coveralls/php-coveralls": "^2.2", "php-coveralls/php-coveralls": "^2.2",
"phpunit/phpunit": "^7.5.15|^8.5", "phpunit/phpunit": "^7.5.15 || ^8.5 || ^9.0",
"vimeo/psalm": "^3.5" "vimeo/psalm": "4.3.2"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -961,7 +961,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/brick/math/issues", "issues": "https://github.com/brick/math/issues",
"source": "https://github.com/brick/math/tree/master" "source": "https://github.com/brick/math/tree/0.9.2"
}, },
"funding": [ "funding": [
{ {
@ -969,7 +969,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-08-18T23:57:15+00:00" "time": "2021-01-20T22:51:39+00:00"
}, },
{ {
"name": "clue/stream-filter", "name": "clue/stream-filter",
@ -4154,23 +4154,23 @@
}, },
{ {
"name": "jaybizzle/crawler-detect", "name": "jaybizzle/crawler-detect",
"version": "v1.2.103", "version": "v1.2.104",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/JayBizzle/Crawler-Detect.git", "url": "https://github.com/JayBizzle/Crawler-Detect.git",
"reference": "3efa2860959cc971f17624b40bf0699823f9d0f3" "reference": "a581e89a9212c4e9d18049666dc735718c29de9c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/3efa2860959cc971f17624b40bf0699823f9d0f3", "url": "https://api.github.com/repos/JayBizzle/Crawler-Detect/zipball/a581e89a9212c4e9d18049666dc735718c29de9c",
"reference": "3efa2860959cc971f17624b40bf0699823f9d0f3", "reference": "a581e89a9212c4e9d18049666dc735718c29de9c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.0" "php": ">=5.3.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^4.8|^5.5|^6.5" "phpunit/phpunit": "^4.8|^5.5|^6.5|^9.4"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -4200,9 +4200,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/JayBizzle/Crawler-Detect/issues", "issues": "https://github.com/JayBizzle/Crawler-Detect/issues",
"source": "https://github.com/JayBizzle/Crawler-Detect/tree/v1.2.103" "source": "https://github.com/JayBizzle/Crawler-Detect/tree/v1.2.104"
}, },
"time": "2020-11-23T19:49:25+00:00" "time": "2021-01-13T15:25:20+00:00"
}, },
{ {
"name": "jenssegers/agent", "name": "jenssegers/agent",
@ -4528,16 +4528,16 @@
}, },
{ {
"name": "laravel/framework", "name": "laravel/framework",
"version": "v8.23.1", "version": "v8.25.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/framework.git", "url": "https://github.com/laravel/framework.git",
"reference": "a813df1b248ca305e5f5ce23ea981ed6c6905504" "reference": "05da44d6823c2923597519ac10151f5827a24f80"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/a813df1b248ca305e5f5ce23ea981ed6c6905504", "url": "https://api.github.com/repos/laravel/framework/zipball/05da44d6823c2923597519ac10151f5827a24f80",
"reference": "a813df1b248ca305e5f5ce23ea981ed6c6905504", "reference": "05da44d6823c2923597519ac10151f5827a24f80",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4624,6 +4624,7 @@
}, },
"suggest": { "suggest": {
"aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.155).", "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.155).",
"brianium/paratest": "Required to run tests in parallel (^6.0).",
"doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.6|^3.0).", "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.6|^3.0).",
"ext-ftp": "Required to use the Flysystem FTP driver.", "ext-ftp": "Required to use the Flysystem FTP driver.",
"ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().", "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().",
@ -4691,7 +4692,7 @@
"issues": "https://github.com/laravel/framework/issues", "issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework" "source": "https://github.com/laravel/framework"
}, },
"time": "2021-01-19T14:10:48+00:00" "time": "2021-01-26T14:40:21+00:00"
}, },
{ {
"name": "laravel/tinker", "name": "laravel/tinker",
@ -5340,16 +5341,16 @@
}, },
{ {
"name": "livewire/livewire", "name": "livewire/livewire",
"version": "v2.3.6", "version": "v2.3.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/livewire/livewire.git", "url": "https://github.com/livewire/livewire.git",
"reference": "8663232c198ef12964b62559e9bb2023eb86701d" "reference": "c661e295428b2baaff04320d0a9424db5ca72be5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/livewire/livewire/zipball/8663232c198ef12964b62559e9bb2023eb86701d", "url": "https://api.github.com/repos/livewire/livewire/zipball/c661e295428b2baaff04320d0a9424db5ca72be5",
"reference": "8663232c198ef12964b62559e9bb2023eb86701d", "reference": "c661e295428b2baaff04320d0a9424db5ca72be5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -5400,7 +5401,7 @@
"description": "A front-end framework for Laravel.", "description": "A front-end framework for Laravel.",
"support": { "support": {
"issues": "https://github.com/livewire/livewire/issues", "issues": "https://github.com/livewire/livewire/issues",
"source": "https://github.com/livewire/livewire/tree/v2.3.6" "source": "https://github.com/livewire/livewire/tree/v2.3.8"
}, },
"funding": [ "funding": [
{ {
@ -5408,7 +5409,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-01-08T17:33:29+00:00" "time": "2021-01-21T14:01:48+00:00"
}, },
{ {
"name": "lorisleiva/laravel-search-string", "name": "lorisleiva/laravel-search-string",
@ -5712,20 +5713,20 @@
}, },
{ {
"name": "markbaker/matrix", "name": "markbaker/matrix",
"version": "2.0.0", "version": "2.1.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/MarkBaker/PHPMatrix.git", "url": "https://github.com/MarkBaker/PHPMatrix.git",
"reference": "9567d9c4c519fbe40de01dbd1e4469dbbb66f46a" "reference": "361c0f545c3172ee26c3d596a0aa03f0cef65e6a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/9567d9c4c519fbe40de01dbd1e4469dbbb66f46a", "url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/361c0f545c3172ee26c3d596a0aa03f0cef65e6a",
"reference": "9567d9c4c519fbe40de01dbd1e4469dbbb66f46a", "reference": "361c0f545c3172ee26c3d596a0aa03f0cef65e6a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.2 || ^8.0" "php": "^7.1 || ^8.0"
}, },
"require-dev": { "require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
@ -5743,22 +5744,22 @@
"Matrix\\": "classes/src/" "Matrix\\": "classes/src/"
}, },
"files": [ "files": [
"classes/src/functions/adjoint.php", "classes/src/Functions/adjoint.php",
"classes/src/functions/antidiagonal.php", "classes/src/Functions/antidiagonal.php",
"classes/src/functions/cofactors.php", "classes/src/Functions/cofactors.php",
"classes/src/functions/determinant.php", "classes/src/Functions/determinant.php",
"classes/src/functions/diagonal.php", "classes/src/Functions/diagonal.php",
"classes/src/functions/identity.php", "classes/src/Functions/identity.php",
"classes/src/functions/inverse.php", "classes/src/Functions/inverse.php",
"classes/src/functions/minors.php", "classes/src/Functions/minors.php",
"classes/src/functions/trace.php", "classes/src/Functions/trace.php",
"classes/src/functions/transpose.php", "classes/src/Functions/transpose.php",
"classes/src/operations/add.php", "classes/src/Operations/add.php",
"classes/src/operations/directsum.php", "classes/src/Operations/directsum.php",
"classes/src/operations/subtract.php", "classes/src/Operations/subtract.php",
"classes/src/operations/multiply.php", "classes/src/Operations/multiply.php",
"classes/src/operations/divideby.php", "classes/src/Operations/divideby.php",
"classes/src/operations/divideinto.php" "classes/src/Operations/divideinto.php"
] ]
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
@ -5780,9 +5781,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/MarkBaker/PHPMatrix/issues", "issues": "https://github.com/MarkBaker/PHPMatrix/issues",
"source": "https://github.com/MarkBaker/PHPMatrix/tree/PHP8" "source": "https://github.com/MarkBaker/PHPMatrix/tree/2.1.2"
}, },
"time": "2020-08-28T17:11:00+00:00" "time": "2021-01-23T16:37:31+00:00"
}, },
{ {
"name": "maximebf/debugbar", "name": "maximebf/debugbar",
@ -5851,16 +5852,16 @@
}, },
{ {
"name": "mobiledetect/mobiledetectlib", "name": "mobiledetect/mobiledetectlib",
"version": "2.8.34", "version": "2.8.35",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/serbanghita/Mobile-Detect.git", "url": "https://github.com/serbanghita/Mobile-Detect.git",
"reference": "6f8113f57a508494ca36acbcfa2dc2d923c7ed5b" "reference": "68a35170fdf36e7b35f9c125e5102338dbc3ff65"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/serbanghita/Mobile-Detect/zipball/6f8113f57a508494ca36acbcfa2dc2d923c7ed5b", "url": "https://api.github.com/repos/serbanghita/Mobile-Detect/zipball/68a35170fdf36e7b35f9c125e5102338dbc3ff65",
"reference": "6f8113f57a508494ca36acbcfa2dc2d923c7ed5b", "reference": "68a35170fdf36e7b35f9c125e5102338dbc3ff65",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -5901,9 +5902,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/serbanghita/Mobile-Detect/issues", "issues": "https://github.com/serbanghita/Mobile-Detect/issues",
"source": "https://github.com/serbanghita/Mobile-Detect/tree/2.8.34" "source": "https://github.com/serbanghita/Mobile-Detect/tree/2.8.35"
}, },
"time": "2019-09-18T18:44:20+00:00" "time": "2021-01-25T19:09:34+00:00"
}, },
{ {
"name": "moneyphp/money", "name": "moneyphp/money",
@ -7907,16 +7908,16 @@
}, },
{ {
"name": "ramsey/collection", "name": "ramsey/collection",
"version": "1.1.1", "version": "1.1.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/ramsey/collection.git", "url": "https://github.com/ramsey/collection.git",
"reference": "24d93aefb2cd786b7edd9f45b554aea20b28b9b1" "reference": "28a5c4ab2f5111db6a60b2b4ec84057e0f43b9c1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/ramsey/collection/zipball/24d93aefb2cd786b7edd9f45b554aea20b28b9b1", "url": "https://api.github.com/repos/ramsey/collection/zipball/28a5c4ab2f5111db6a60b2b4ec84057e0f43b9c1",
"reference": "24d93aefb2cd786b7edd9f45b554aea20b28b9b1", "reference": "28a5c4ab2f5111db6a60b2b4ec84057e0f43b9c1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7926,19 +7927,19 @@
"captainhook/captainhook": "^5.3", "captainhook/captainhook": "^5.3",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"ergebnis/composer-normalize": "^2.6", "ergebnis/composer-normalize": "^2.6",
"fzaninotto/faker": "^1.5", "fakerphp/faker": "^1.5",
"hamcrest/hamcrest-php": "^2", "hamcrest/hamcrest-php": "^2",
"jangregor/phpstan-prophecy": "^0.6", "jangregor/phpstan-prophecy": "^0.8",
"mockery/mockery": "^1.3", "mockery/mockery": "^1.3",
"phpstan/extension-installer": "^1", "phpstan/extension-installer": "^1",
"phpstan/phpstan": "^0.12.32", "phpstan/phpstan": "^0.12.32",
"phpstan/phpstan-mockery": "^0.12.5", "phpstan/phpstan-mockery": "^0.12.5",
"phpstan/phpstan-phpunit": "^0.12.11", "phpstan/phpstan-phpunit": "^0.12.11",
"phpunit/phpunit": "^8.5", "phpunit/phpunit": "^8.5 || ^9",
"psy/psysh": "^0.10.4", "psy/psysh": "^0.10.4",
"slevomat/coding-standard": "^6.3", "slevomat/coding-standard": "^6.3",
"squizlabs/php_codesniffer": "^3.5", "squizlabs/php_codesniffer": "^3.5",
"vimeo/psalm": "^3.12.2" "vimeo/psalm": "^4.4"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -7968,15 +7969,19 @@
], ],
"support": { "support": {
"issues": "https://github.com/ramsey/collection/issues", "issues": "https://github.com/ramsey/collection/issues",
"source": "https://github.com/ramsey/collection/tree/1.1.1" "source": "https://github.com/ramsey/collection/tree/1.1.3"
}, },
"funding": [ "funding": [
{ {
"url": "https://github.com/ramsey", "url": "https://github.com/ramsey",
"type": "github" "type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/ramsey/collection",
"type": "tidelift"
} }
], ],
"time": "2020-09-10T20:58:17+00:00" "time": "2021-01-21T17:40:04+00:00"
}, },
{ {
"name": "ramsey/uuid", "name": "ramsey/uuid",
@ -11079,16 +11084,16 @@
}, },
{ {
"name": "vlucas/phpdotenv", "name": "vlucas/phpdotenv",
"version": "v5.2.0", "version": "v5.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/vlucas/phpdotenv.git", "url": "https://github.com/vlucas/phpdotenv.git",
"reference": "fba64139db67123c7a57072e5f8d3db10d160b66" "reference": "b3eac5c7ac896e52deab4a99068e3f4ab12d9e56"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/fba64139db67123c7a57072e5f8d3db10d160b66", "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/b3eac5c7ac896e52deab4a99068e3f4ab12d9e56",
"reference": "fba64139db67123c7a57072e5f8d3db10d160b66", "reference": "b3eac5c7ac896e52deab4a99068e3f4ab12d9e56",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -11103,7 +11108,7 @@
"require-dev": { "require-dev": {
"bamarni/composer-bin-plugin": "^1.4.1", "bamarni/composer-bin-plugin": "^1.4.1",
"ext-filter": "*", "ext-filter": "*",
"phpunit/phpunit": "^7.5.20 || ^8.5.2 || ^9.0" "phpunit/phpunit": "^7.5.20 || ^8.5.14 || ^9.5.1"
}, },
"suggest": { "suggest": {
"ext-filter": "Required to use the boolean validator." "ext-filter": "Required to use the boolean validator."
@ -11111,7 +11116,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "5.2-dev" "dev-master": "5.3-dev"
} }
}, },
"autoload": { "autoload": {
@ -11143,7 +11148,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/vlucas/phpdotenv/issues", "issues": "https://github.com/vlucas/phpdotenv/issues",
"source": "https://github.com/vlucas/phpdotenv/tree/v5.2.0" "source": "https://github.com/vlucas/phpdotenv/tree/v5.3.0"
}, },
"funding": [ "funding": [
{ {
@ -11155,7 +11160,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2020-09-14T15:57:31+00:00" "time": "2021-01-20T15:23:13+00:00"
}, },
{ {
"name": "voku/portable-ascii", "name": "voku/portable-ascii",
@ -11236,12 +11241,12 @@
"version": "1.9.1", "version": "1.9.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/webmozart/assert.git", "url": "https://github.com/webmozarts/assert.git",
"reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", "url": "https://api.github.com/repos/webmozarts/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389",
"reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389",
"shasum": "" "shasum": ""
}, },
@ -11279,8 +11284,8 @@
"validate" "validate"
], ],
"support": { "support": {
"issues": "https://github.com/webmozart/assert/issues", "issues": "https://github.com/webmozarts/assert/issues",
"source": "https://github.com/webmozart/assert/tree/master" "source": "https://github.com/webmozarts/assert/tree/1.9.1"
}, },
"time": "2020-07-08T17:02:28+00:00" "time": "2020-07-08T17:02:28+00:00"
} }
@ -11351,6 +11356,86 @@
}, },
"time": "2020-12-15T10:57:43+00:00" "time": "2020-12-15T10:57:43+00:00"
}, },
{
"name": "brianium/paratest",
"version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/paratestphp/paratest.git",
"reference": "235db99a43401d68fdc4495b20b49291ea2e767d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/paratestphp/paratest/zipball/235db99a43401d68fdc4495b20b49291ea2e767d",
"reference": "235db99a43401d68fdc4495b20b49291ea2e767d",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-pcre": "*",
"ext-reflection": "*",
"ext-simplexml": "*",
"php": "^7.3 || ^8.0",
"phpunit/php-code-coverage": "^9.2.5",
"phpunit/php-file-iterator": "^3.0.5",
"phpunit/php-timer": "^5.0.3",
"phpunit/phpunit": "^9.5.0",
"sebastian/environment": "^5.1.3",
"symfony/console": "^4.4 || ^5.2",
"symfony/process": "^4.4 || ^5.2"
},
"require-dev": {
"doctrine/coding-standard": "^8.2.0",
"ekino/phpstan-banned-code": "^0.3.1",
"ergebnis/phpstan-rules": "^0.15.3",
"ext-posix": "*",
"infection/infection": "^0.18.2",
"phpstan/phpstan": "^0.12.58",
"phpstan/phpstan-deprecation-rules": "^0.12.5",
"phpstan/phpstan-phpunit": "^0.12.16",
"phpstan/phpstan-strict-rules": "^0.12.5",
"squizlabs/php_codesniffer": "^3.5.8",
"symfony/filesystem": "^5.2.0",
"thecodingmachine/phpstan-strict-rules": "^0.12.1",
"vimeo/psalm": "^4.3.1"
},
"bin": [
"bin/paratest"
],
"type": "library",
"autoload": {
"psr-4": {
"ParaTest\\": [
"src/"
]
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Brian Scaturro",
"email": "scaturrob@gmail.com",
"homepage": "http://brianscaturro.com",
"role": "Lead"
}
],
"description": "Parallel testing for PHP",
"homepage": "https://github.com/paratestphp/paratest",
"keywords": [
"concurrent",
"parallel",
"phpunit",
"testing"
],
"support": {
"issues": "https://github.com/paratestphp/paratest/issues",
"source": "https://github.com/paratestphp/paratest/tree/v6.1.2"
},
"time": "2020-12-15T11:41:54+00:00"
},
{ {
"name": "doctrine/instantiator", "name": "doctrine/instantiator",
"version": "1.4.0", "version": "1.4.0",
@ -11487,16 +11572,16 @@
}, },
{ {
"name": "facade/ignition", "name": "facade/ignition",
"version": "2.5.8", "version": "2.5.9",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/facade/ignition.git", "url": "https://github.com/facade/ignition.git",
"reference": "8e907d81244649c5ea746e2ec30c32c5f59df472" "reference": "66b3138ecce38024723fb3bfc66ef8852a779ea9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/facade/ignition/zipball/8e907d81244649c5ea746e2ec30c32c5f59df472", "url": "https://api.github.com/repos/facade/ignition/zipball/66b3138ecce38024723fb3bfc66ef8852a779ea9",
"reference": "8e907d81244649c5ea746e2ec30c32c5f59df472", "reference": "66b3138ecce38024723fb3bfc66ef8852a779ea9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -11560,7 +11645,7 @@
"issues": "https://github.com/facade/ignition/issues", "issues": "https://github.com/facade/ignition/issues",
"source": "https://github.com/facade/ignition" "source": "https://github.com/facade/ignition"
}, },
"time": "2020-12-29T09:12:55+00:00" "time": "2021-01-26T14:45:19+00:00"
}, },
{ {
"name": "facade/ignition-contracts", "name": "facade/ignition-contracts",
@ -11669,16 +11754,16 @@
}, },
{ {
"name": "filp/whoops", "name": "filp/whoops",
"version": "2.9.1", "version": "2.9.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/filp/whoops.git", "url": "https://github.com/filp/whoops.git",
"reference": "307fb34a5ab697461ec4c9db865b20ff2fd40771" "reference": "df7933820090489623ce0be5e85c7e693638e536"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/filp/whoops/zipball/307fb34a5ab697461ec4c9db865b20ff2fd40771", "url": "https://api.github.com/repos/filp/whoops/zipball/df7933820090489623ce0be5e85c7e693638e536",
"reference": "307fb34a5ab697461ec4c9db865b20ff2fd40771", "reference": "df7933820090489623ce0be5e85c7e693638e536",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -11728,9 +11813,15 @@
], ],
"support": { "support": {
"issues": "https://github.com/filp/whoops/issues", "issues": "https://github.com/filp/whoops/issues",
"source": "https://github.com/filp/whoops/tree/2.9.1" "source": "https://github.com/filp/whoops/tree/2.9.2"
}, },
"time": "2020-11-01T12:00:00+00:00" "funding": [
{
"url": "https://github.com/denis-sokolov",
"type": "github"
}
],
"time": "2021-01-24T12:00:00+00:00"
}, },
{ {
"name": "hamcrest/hamcrest-php", "name": "hamcrest/hamcrest-php",
@ -11915,16 +12006,16 @@
}, },
{ {
"name": "nunomaduro/collision", "name": "nunomaduro/collision",
"version": "v5.2.0", "version": "v5.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/nunomaduro/collision.git", "url": "https://github.com/nunomaduro/collision.git",
"reference": "aca954fd03414ba0dd85d7d8e42ba9b251893d1f" "reference": "aca63581f380f63a492b1e3114604e411e39133a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/nunomaduro/collision/zipball/aca954fd03414ba0dd85d7d8e42ba9b251893d1f", "url": "https://api.github.com/repos/nunomaduro/collision/zipball/aca63581f380f63a492b1e3114604e411e39133a",
"reference": "aca954fd03414ba0dd85d7d8e42ba9b251893d1f", "reference": "aca63581f380f63a492b1e3114604e411e39133a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -11999,7 +12090,7 @@
"type": "patreon" "type": "patreon"
} }
], ],
"time": "2021-01-13T10:00:08+00:00" "time": "2021-01-25T15:34:13+00:00"
}, },
{ {
"name": "phar-io/manifest", "name": "phar-io/manifest",

View File

@ -14,11 +14,11 @@ return [
'build' => '', 'build' => '',
'status' => 'RC', 'status' => 'Stable',
'date' => '26-December-2020', 'date' => '26-January-2020',
'time' => '20:00', 'time' => '18:00',
'zone' => 'GMT +3', 'zone' => 'GMT +3',