File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -8,3 +8,9 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
88
99### Added  
1010-  Released the first version of the package
11+ 
12+ 
13+ ## v1.0.1 - 2019-03-26  
14+ 
15+ ### Changed  
16+ -  Use intermediate variable to check whether a source is valid
Original file line number Diff line number Diff line change @@ -83,15 +83,15 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
8383
8484[ ico-version ] : https://img.shields.io/packagist/v/cerbero/json-objects.svg?style=flat-square 
8585[ ico-license ] : https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square 
86- [ ico-travis ] : https://img.shields.io/travis/cerbero /json-objects/master.svg?style=flat-square 
87- [ ico-scrutinizer ] : https://img.shields.io/scrutinizer/coverage/g/cerbero /json-objects.svg?style=flat-square 
88- [ ico-code-quality ] : https://img.shields.io/scrutinizer/g/cerbero /json-objects.svg?style=flat-square 
86+ [ ico-travis ] : https://img.shields.io/travis/cerbero90 /json-objects/master.svg?style=flat-square 
87+ [ ico-scrutinizer ] : https://img.shields.io/scrutinizer/coverage/g/cerbero90 /json-objects.svg?style=flat-square 
88+ [ ico-code-quality ] : https://img.shields.io/scrutinizer/g/cerbero90 /json-objects.svg?style=flat-square 
8989[ ico-downloads ] : https://img.shields.io/packagist/dt/cerbero/json-objects.svg?style=flat-square 
9090
9191[ link-packagist ] : https://packagist.org/packages/cerbero/json-objects 
92- [ link-travis ] : https://travis-ci.org/cerbero /json-objects 
93- [ link-scrutinizer ] : https://scrutinizer-ci.com/g/cerbero /json-objects/code-structure 
94- [ link-code-quality ] : https://scrutinizer-ci.com/g/cerbero /json-objects 
92+ [ link-travis ] : https://travis-ci.org/cerbero90 /json-objects 
93+ [ link-scrutinizer ] : https://scrutinizer-ci.com/g/cerbero90 /json-objects/code-structure 
94+ [ link-code-quality ] : https://scrutinizer-ci.com/g/cerbero90 /json-objects 
9595[ link-downloads ] : https://packagist.org/packages/cerbero/json-objects 
9696[ link-author ] : https://github.com/cerbero90 
9797[ link-jsonstreamingparser ] : https://github.com/salsify/jsonstreamingparser 
Original file line number Diff line number Diff line change @@ -62,11 +62,13 @@ protected function setStreamFromSource($source) : void
6262            throw  new  JsonObjectsException ('Unable to create a stream from the given source. ' );
6363        }
6464
65-         $ this -> stream  = extension_loaded ('zlib ' ) ? @gzopen ($ source'rb ' ) : @fopen ($ source'rb ' );
65+         $ streamextension_loaded ('zlib ' ) ? @gzopen ($ source'rb ' ) : @fopen ($ source'rb ' );
6666
67-         if  ($ this -> stream  === false ) {
67+         if  ($ streamfalse ) {
6868            throw  new  JsonObjectsException ("Failed to open stream from:  {$ source );
6969        }
70+ 
71+         $ this stream  = $ stream
7072    }
7173
7274    /** 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments