Code Monkey home page Code Monkey logo

nette-di-fail's Introduction

Nette DI fail

Nette DI 3.1.4 and 3.1.5 caused errors in our applications.

Steps to reproduce:

git clone [email protected]:lulco/nette-di-fail.git
cd nette-di-fail
composer install
rm -rf temp/*
php test.php

You will see error

PHP Fatal error:  Uncaught Nette\DI\InvalidConfigurationException: The item 'test › lang' expects to be string, object Nette\DI\DynamicParameter given. in /var/www/libs/lulco/nette-di-fail/vendor/nette/di/src/DI/Compiler.php:293

Run:

composer up nette/di --prefer-lowest

To install nette/di in version 3.1.3

Then run:

rm -rf temp/*
php test.php

You should see output like:

/var/www/libs/lulco/nette-di-fail/src/NetteDiFail/TestExtension.php:24:
class stdClass#79 (1) {
  public $lang =>
  string(2) "sk"
}

Problematic part seems to be parameter test.resolvers, even if they are not used in extension:

parameters:
    test:
        language: sk
        resolvers:
            - NetteDiFail\LangResolver()

nette-di-fail's People

Contributors

lulco avatar

Watchers

 avatar  avatar

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.