Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jan 24, 2024
2 parents 4cd74d8 + 2cb4b47 commit 7c00a53
Show file tree
Hide file tree
Showing 29 changed files with 416 additions and 115 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"paragonie/constant_time_encoding": "^2.3",
"composer/ca-bundle": "^1.2",
"symfony/options-resolver": "^5.0||^6.0||^7.0",
"symfony/polyfill-php83": "^1.27"
"symfony/polyfill-php83": "^1.27",
"asika/object-metadata": "^1.0"
},
"require-dev": {
"asika/sql-splitter": "^1.0",
Expand Down Expand Up @@ -272,4 +273,4 @@
"yarn.lock"
]
}
}
}
2 changes: 1 addition & 1 deletion packages/database/src/Driver/AbstractStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ protected function fetchedEvent(?array $item): ?array
*/
public function loadColumn(int|string $offset = 0): Collection
{
$all = $this->all();
$all = $this->all(Collection::class);

if (is_numeric($offset)) {
return $all->mapProxy()
Expand Down
2 changes: 1 addition & 1 deletion packages/database/test/Platform/PostgreSQLPlatformTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function testGetViews(): void
ww_articles.language,
ww_articles.params
FROM ww_articles;'
)
)
),
'CHECK_OPTION' => 'NONE',
'IS_UPDATABLE' => 'YES',
Expand Down
7 changes: 5 additions & 2 deletions packages/filesystem/src/FileObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,6 @@ public function exists(int $sensitive = Path::CASE_OS_DEFAULT): bool
}

/**
* getParent
*
* @param int $levels
*
* @return static
Expand All @@ -679,6 +677,11 @@ public function getParent(int $levels = 1): static
return static::wrap(dirname($this->getPathname(), $levels));
}

public function getPathObject(): static
{
return static::wrap($this->getPath());
}

/**
* getStream
*
Expand Down
1 change: 0 additions & 1 deletion packages/filter/src/Rule/Clamp.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Windwalker\Filter\Rule;

use Windwalker\Filter\AbstractFilter;

use Windwalker\Utilities\TypeCast;

use function Windwalker\clamp;
Expand Down
4 changes: 0 additions & 4 deletions packages/form/src/Field/AbstractField.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use BadMethodCallException;
use Closure;
use InvalidArgumentException;
use Windwalker\Data\Collection;
use Windwalker\DOM\DOMElement;
use Windwalker\Form\Field\Concern\{ManageFilterTrait,
ManageInputTrait,
Expand All @@ -23,9 +22,6 @@
use Windwalker\Utilities\Options\StateAccessTrait;
use Windwalker\Utilities\Str;

use Windwalker\Utilities\TypeCast;

use function Windwalker\collect;
use function Windwalker\DOM\h;

/**
Expand Down
1 change: 0 additions & 1 deletion packages/form/src/Field/TextField.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Windwalker\DOM\DOMElement;
use Windwalker\Filter\Rule\Length;
use Windwalker\Form\Field\Concern\ListOptionsTrait;

use Windwalker\Utilities\TypeCast;

use function Windwalker\DOM\h;
Expand Down
2 changes: 1 addition & 1 deletion packages/http/src/CaBundleFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static function find(): ?string

$finder = static::getFinder();

$file =$finder();
$file = $finder();

if (file_exists($file)) {
return $file;
Expand Down
2 changes: 0 additions & 2 deletions packages/http/test/HttpClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@
use Windwalker\Http\Test\Mock\MockTransport;
use Windwalker\Http\Transport\CurlTransport;
use Windwalker\Promise\Promise;
use Windwalker\Promise\Scheduler\TaskQueue;
use Windwalker\Test\Traits\BaseAssertionTrait;
use Windwalker\Uri\Uri;
use Windwalker\Uri\UriHelper;

use Windwalker\Utilities\Str;

use function Windwalker\Uri\uri_prepare;
Expand Down
1 change: 1 addition & 0 deletions packages/orm/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"license": "MIT",
"require": {
"php": ">=8.2.0",
"asika/object-metadata": "^1.0",
"windwalker/attributes": "^4.0",
"windwalker/database": "^4.0",
"windwalker/utilities": "^4.0",
Expand Down
Loading

0 comments on commit 7c00a53

Please sign in to comment.