Skip to content

Fix JsonStreamFile empty line at the end issue, even if SKIP_EMPTY is set #169

@njoubert-cleverage

Description

@njoubert-cleverage

Description

On PHP 8, \SplFileObject->fgets() return empty line at the end, even if SKIP_EMPTY flag is set.
This cause fatal error "Process *** has failed during process read with message: 'Syntax error'" when trying to json_decode it on JsonStreamFile->readLine()

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions