Skip to content

Commit

Permalink
Merge branch 'release/v0.3.5' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
betterthanclay committed Sep 27, 2022
2 parents de75992 + f1a7442 commit e2450a3
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.3.5 (2022-09-27)
* Updated Veneer stub
* Updated composer check script

## v0.3.4 (2022-09-27)
* Updated Veneer dependency

Expand Down
12 changes: 9 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"decodelabs/dictum": "^0.4",
"decodelabs/exceptional": "^0.4",
"decodelabs/lucid-support": "^0.2.1",
"decodelabs/veneer": "^0.10",
"decodelabs/veneer": "^0.10.7",

"nesbot/carbon": "^2.25"
},
Expand All @@ -29,7 +29,9 @@

"decodelabs/phpstan-decodelabs": "^0.6",
"decodelabs/compass": "^0.1.1",
"decodelabs/spectrum": "^0.2.1"
"decodelabs/spectrum": "^0.2.1",
"decodelabs/atlas": "^0.10.4",
"decodelabs/terminus": "^0.8.4"
},
"suggest": {
"decodelabs/compass": "IP address validation support",
Expand All @@ -56,16 +58,20 @@
},
"scripts": {
"analyze": "phpstan analyze --no-progress",
"clear-phpstan": "phpstan clear-result-cache",
"ecs": "ecs check --no-progress-bar",
"ecs-fix": "ecs check --no-progress-bar --fix",
"lint": "parallel-lint src/ stubs/ ecs.php",
"eclint": "eclint check src/ stubs/ ecs.php",
"eclint-fix": "eclint fix src/ stubs/ ecs.php",
"non-ascii": "! LC_ALL=C.UTF-8 find src/ stubs/ -type f -name \"*.php\" -print0 | xargs -0 -- grep -PHn \"[^ -~]\" | grep -v '// @ignore-non-ascii$'",
"veneer-stub": "vendor/bin/veneer-stub",
"check": [
"@composer update",
"@veneer-stub",
"@clear-phpstan",
"@analyze",
"@ecs",
"@ecs-fix",
"@lint",
"@eclint",
"@non-ascii"
Expand Down
33 changes: 30 additions & 3 deletions stubs/DecodeLabs/Lucid.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,36 @@
* It should not be included in your projects.
*/
namespace DecodeLabs;

use DecodeLabs\Veneer\Proxy;
use DecodeLabs\Veneer\ProxyTrait;
use DecodeLabs\Lucid\Context as Inst;
class Lucid implements Proxy { use ProxyTrait;
const VENEER = 'DecodeLabs\Lucid';
const VENEER_TARGET = Inst::class;};
use DecodeLabs\Lucid\Sanitizer as Ref0;
use Closure as Ref1;
use DecodeLabs\Lucid\Validate\Result as Ref2;

class Lucid implements Proxy
{
use ProxyTrait;

const VENEER = 'DecodeLabs\Lucid';
const VENEER_TARGET = Inst::class;

public static Inst $instance;

public static function newSanitizer(mixed $value): Ref0 {
return static::$instance->newSanitizer(...func_get_args());
}
public static function make(mixed $value, string $type, Ref1|array|null $setup = NULL): mixed {
return static::$instance->make(...func_get_args());
}
public static function validate(mixed $value, string $type, Ref1|array|null $setup = NULL): Ref2 {
return static::$instance->validate(...func_get_args());
}
public static function is(mixed $value, string $type, Ref1|array|null $setup = NULL): bool {
return static::$instance->is(...func_get_args());
}
public static function sanitize(mixed $value): Ref0 {
return static::$instance->sanitize(...func_get_args());
}
};

0 comments on commit e2450a3

Please sign in to comment.