Coder Social home page Coder Social logo

Comments (7)

Sibyx avatar Sibyx commented on July 20, 2024

Hi,
can you please provide me yours .gpx file so I can reproduce the problem? Also, can you please tell me which version of the library are you currently using?

from phpgpx.

Moosjes avatar Moosjes commented on July 20, 2024

Well it does not seem to matter what GPX file I use but this is one for example
example.zip

In src/phpGPX/Models/Track.php on line 51 there is a piece of code:
usort($points, array(DateTimeHelper::class, 'comparePointsByTimestamp'));

If I remove the ::class from this line it works. I have no clue to what kind of problems this creates in the rest of the code but with this change I can go on with my code.

It is the latest version

from phpgpx.

Sibyx avatar Sibyx commented on July 20, 2024

I know that problem don't have to be connected to your GPX file. I just want to collect all relevant data before deeper investigation.

Which version of PHP do you use?

from phpgpx.

Moosjes avatar Moosjes commented on July 20, 2024

PHP Version 5.4.16

from phpgpx.

Sibyx avatar Sibyx commented on July 20, 2024

Ah,
I see the problem. The class name resolution using ::class have been introduced in PHP 5.5. We have wrong PHP support in composer.json. I will check the codebase of the project and if it will be possible to support PHP 5.4 I will do necessary changes if not, the PHP version support will be changed to PHP 5.5.

Anyway, I recommend you to migrate to PHP 7 if it's possible

from phpgpx.

Moosjes avatar Moosjes commented on July 20, 2024

That is something I am working on but it's a little bit more work than I wanted :P

from phpgpx.

Sibyx avatar Sibyx commented on July 20, 2024

I have probably fixed support for PHP 5.4, but I am unable to run tests because we are using PHPUnit 6.5.

So please let me know if you will have some problems with the library with PHP 5.4

from phpgpx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.