From 3080bdf02222ed9a0a4cfec53807c82fb71b2fb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=86=E1=85=AE=E1=86=AB=E1=84=8C=E1=85=A5=E1=86=BC?= =?UTF-8?q?=E1=84=80=E1=85=B5?= Date: Mon, 17 Feb 2020 16:14:42 +0900 Subject: [PATCH] ## [0.17.4] - 2020-02-17 ### Fixed - Fix Functions to protected in `PlatformDtoTrait` --- CHANGELOG.md | 4 ++++ lib/Base/PlatformDtoTrait.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f265f0..87a58eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [0.17.4] - 2020-02-17 +### Fixed +- Fix Functions to protected in `PlatformDtoTrait` + ## [0.17.3] - 2020-02-17 ### Added - Add Trait `PlatformDtoTrait` diff --git a/lib/Base/PlatformDtoTrait.php b/lib/Base/PlatformDtoTrait.php index d5b4877..12d740b 100644 --- a/lib/Base/PlatformDtoTrait.php +++ b/lib/Base/PlatformDtoTrait.php @@ -14,7 +14,7 @@ trait PlatformDtoTrait * * @throws \ReflectionException */ - public function importFromRequest(Request $request): void + protected function importFromRequest(Request $request): void { $reflect = new ReflectionClass(get_called_class()); $properties = $reflect->getProperties(ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_PROTECTED); @@ -29,7 +29,7 @@ public function importFromRequest(Request $request): void * * @throws \Exception */ - public function importFromArray(array $array): void + protected function importFromArray(array $array): void { $reflect = new ReflectionClass(get_called_class()); $properties = $reflect->getDefaultProperties();