ReflectionParameter::getClass() is deprecated when running artisan migrate

Open
#58 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
database

Research direction

The failure happens when php artisan migrate runs, so start by reproducing it and reading the stack trace to find which getClass() call on a ReflectionParameter triggers the deprecation. Search the PHP sources for ->getClass() and replace it with the non-deprecated equivalent for the PHP version in use, such as getType(). Done means php artisan migrate completes and creates the database tables without the ErrorException. The issue has no comments or maintainer reply, so confirm the target PHP version before editing.

Written by the indexing model from the issue text.

Description

steven@raspberrypi:~/public-html/compass $ php artisan migrate

                                                        
  [ErrorException]                                      
  Method ReflectionParameter::getClass() is deprecated  
                                                        

It appears the script aborts at this point as the database tables are not created.

Dominant language
JavaScript
Stars
143
Forks
33
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aaronpk/Compass

All issues in aaronpk/Compass

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.