mapper.php

Basically a serialization wrapper for netresearch/jsonmapper
git clone git://git.finwo.net/lib/mapper.php
Log | Files | Refs | README

commit 7424c3766e103cd4be234f5c5f1afd0ca82976f2
parent 96b8dc67f84b5e2e82c2576f0fd4a7c69c14b71d
Author: finwo <finwo@pm.me>
Date:   Fri,  8 Dec 2017 12:18:07 +0100

Merge pull request #1 from finwo/serialization-error

Found bug in the driverhandler
Diffstat:
M.travis.yml | 1-
Msrc/DriverHandler.php | 8++++----
Mtests/LintTest.php | 3+--
3 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/.travis.yml b/.travis.yml @@ -1,6 +1,5 @@ language: php php: - - '5.3' - '5.4' - '5.5' - '5.6' diff --git a/src/DriverHandler.php b/src/DriverHandler.php @@ -58,8 +58,8 @@ class DriverHandler } // Decode the data - if (isset($drivers[$encoding])) { - return $drivers[$encoding]->decode($input); + if (isset($this->drivers[$encoding])) { + return $this->drivers[$encoding]->decode($input); } // Or notify we've failed @@ -87,8 +87,8 @@ class DriverHandler } // Decode the data - if (isset($drivers[$encoding])) { - return $drivers[$encoding]->encode($data); + if (isset($this->drivers[$encoding])) { + return $this->drivers[$encoding]->encode($data); } // Or notify we've failed diff --git a/tests/LintTest.php b/tests/LintTest.php @@ -1,7 +1,6 @@ <?php -class LintTest extends \PHPUnit_Framework_TestCase -{ +class LintTest extends \PHPUnit\Framework\TestCase { public function testSrc() { // Main entry