Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Commit

Permalink
## [0.17.4] - 2020-02-17
Browse files Browse the repository at this point in the history
### Fixed
- Fix Functions to protected in `PlatformDtoTrait`
  • Loading branch information
문정기 committed Feb 17, 2020
1 parent c28e17d commit 3080bdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
4 changes: 2 additions & 2 deletions lib/Base/PlatformDtoTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
Expand Down

0 comments on commit 3080bdf

Please sign in to comment.