Code Monkey home page Code Monkey logo

Comments (5)

michalbundyra avatar michalbundyra commented on June 8, 2024

@samsonasik can you check please if definitely you are using zend-component-installer in version 0.6.0?
These deprecation notices were fixed with 0.5.1 release in #29. Please see also current version (0.6.0):
https://github.com/zendframework/zend-component-installer/blob/0.6.0/src/ComponentInstaller.php#L11

from zend-component-installer.

samsonasik avatar samsonasik commented on June 8, 2024

yes:

$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 1 update, 0 removals
  - Updating zendframework/zend-component-installer (0.3.1 => 0.6.0) Loading from cache
Deprecation Notice: The callback Zend\ComponentInstaller\ComponentInstaller::onPostPackageInstall declared at /Users/samsonasik/www/zfproject/vendor/zendframework/zend-component-installer/src/ComponentInstaller.php accepts a Composer\Script\PackageEvent but post-package-install events use a Composer\Installer\PackageEvent instance. Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes in phar:///usr/local/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php:317

from zend-component-installer.

michalbundyra avatar michalbundyra commented on June 8, 2024

@samsonasik So is it still wrong or is fine now? Sorry, I'm lost ;-) In code all seems to be fine. Thanks!

from zend-component-installer.

samsonasik avatar samsonasik commented on June 8, 2024

@webimpress deprecation still shown.

from zend-component-installer.

weierophinney avatar weierophinney commented on June 8, 2024

I cannot recreate this currently.

To test, I did the following:

$ composer create-project zendframework/skeleton-application test

This did demonstrate the deprecation notices, but that was to be expected; the skeleton is currently pinned to the 0.3.0 release of this package.

I chose to do a minimal install. Interestingly, while the plugin was installed, it was not represented in my composer.json; in fact, no require-dev section was listed, which was kind of strange. As such, I ran the following:

$ composer require --dev zendframework/zend-component-installer

This installed 0.7.0, which we just tagged today. That release contains no changes to what version of the composer plugin API we require or exercise.

I then did the following:

$ composer require zendframework/zend-form

I received no deprecation notices.

Since we cannot determine how to reproduce, I'm closing the issue.

from zend-component-installer.

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.