Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

phpunit, laravel: Cannot use "parent" when current class scope has no parent

I had same issue - it turned out that mockery/mockery was set to version 0.9 in my composer.json. Upgrading mockery/mockery to version 1.3 solved the problem for me.

Related composer.json fragment:

        "mockery/mockery": "~1.3.0",
        "phpunit/phpunit": "~8.0",

Try setting same versions and run composer update

Tags:

Php

Phpunit

Laravel 5

Mockery

Php 7.4

Related

springdoc-openapi apply default global SecurityScheme possible? Retry failed jobs in github actions Volley request retry policy doesn't consider timeout NGINX read body from proxy_pass response Error: Please, upgrade your dependencies to the actual version of core-js@3 How to run a function when a route changes in angular? Return the last record in a One to many Eloquent Relation using Laravel Printing elements with VueJS using 3rd party libraries Installing ruby-2.1.2: Cannot load such file -- openssl (LoadError) ElasticSearch start up error - the default discovery settings are unsuitable for production use; How to Upload File from Angular to ASP.NET Core Web API react/prop-types eslint error in typescript react component

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy