Code Monkey home page Code Monkey logo

Comments (8)

abishekrsrikaanth avatar abishekrsrikaanth commented on July 18, 2024 4

I have this package installed on an existing project. Trying running one of these commands

composer i --no-dev --optimize-autoloader --classmap-authoritative

composer update

composer update "ipinfo/ipinfo"

One of these should output the above deprecation warning messages on your console.

This would also require you to make a new major version release to avoid breaking changes if existing projects use the current namespacing.

from php.

peter279k avatar peter279k commented on July 18, 2024 3

It seems that the PSR-4 autoloading will not be compatible on composer-2.0 version.

And I think it should be fixed.

from php.

peter279k avatar peter279k commented on July 18, 2024 2

Hi @abishekrsrikaanth, thanks for your approach and I can reproduce the issue as well.

You're right. It should release a major version to accomplish this issue :).

from php.

umairkhan-dev avatar umairkhan-dev commented on July 18, 2024 1

@peter279k
Any update on PSR-4 compliance issue.

composer.json

{
    "config": {
        "optimize-autoloader": true,
        "sort-packages": true
    },
    "require": {
        "ipinfo/ipinfo": "dev-master"
    }
}

This seem to resolve the PSR-4 compliance issue with composer 2.0.2 as composer cloned bde9ce0 commit by @coderholic.
However wouldn't it be better to push your latest changes to packagist with newer version.

from php.

UmanShahzad avatar UmanShahzad commented on July 18, 2024 1

We'll be releasing the latest version (actually, probably a 2.0.0 with some more fixes and updates) to packagist soon.

from php.

peter279k avatar peter279k commented on July 18, 2024

@abishekrsrikaanth, could you have the approaches about reproducing issue?

I cannot reproduce this issue by myself.

I try to use following issue to reproduce:

  • Using the composer-1.10.1to installipinfo/ipinfo` package.
php ~/composer.phar require ipinfo/ipinfo
  • Then changing the ipinfo/ipinfo version ^1.1 to dev-master on composer.json file.
  • Using the php ~/composer.phar require ipinfo/ipinfo to update the ipinfo/ipinfo package.

And I don't have any message about deprecation notice message.

from php.

UmanShahzad avatar UmanShahzad commented on July 18, 2024

https://packagist.org/packages/ipinfo/ipinfo#v2.0.0

from php.

bkmorse avatar bkmorse commented on July 18, 2024

run command:

composer self-update 1.6.3

to downgrade to an earlier version of composer, temporary fix.

from php.

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.