From 9315fdf70f063cd9b51d6807ac012b06bbed6e0e Mon Sep 17 00:00:00 2001 From: jaimz Date: Mon, 4 Oct 2021 17:00:43 -0400 Subject: [PATCH] Correcting compatibility with vertigolabs/data-aware --- composer.json | 2 +- src/ValidationAware.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 262f36d..27cc562 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "vertigolabs/validation-aware", "description": "validation aware traits", - "version": "1.0.0", + "version": "1.0.1", "minimum-stability": "stable", "license": "MIT", "authors": [ diff --git a/src/ValidationAware.php b/src/ValidationAware.php index c4ce710..8bd3ea1 100644 --- a/src/ValidationAware.php +++ b/src/ValidationAware.php @@ -19,7 +19,7 @@ trait ValidationAware abstract protected function log(string $message, ?int $level = null): void; - abstract public function getData($directive = null, $default = null); + abstract public function getData(string|array $key = null, mixed $default = null): mixed; /** * Returns a collection of validation constraints