mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:44:04 +00:00
[1.8.0] Use strict types (#115)
* Use strict types * Apply fixes from StyleCI * Fix str_repeat * Fix false json decode
This commit is contained in:
parent
1e51dcb508
commit
2fd3662eb7
60 changed files with 123 additions and 2 deletions
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stancl\Tenancy;
|
||||
|
||||
use Stancl\Tenancy\Interfaces\StorageDriver;
|
||||
|
|
@ -383,7 +385,9 @@ final class TenantManager
|
|||
protected function jsonDecodeArrayValues(array $array)
|
||||
{
|
||||
\array_walk($array, function (&$value, $key) {
|
||||
$value = \json_decode($value, true);
|
||||
if ($value) {
|
||||
$value = \json_decode($value, true);
|
||||
}
|
||||
});
|
||||
|
||||
return $array;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue