1

I recently changed to Php 7.4 from 7.2 and I came across a deprecated function:

Function ReflectionParameter::export() is deprecated

https://www.php.net/manual/en/reflectionparameter.export.php

what to use instead?

John Smith
  • 6,129
  • 12
  • 68
  • 123
  • 1
    You could try casting the value to a string, not sure if the output is any different. – Nigel Ren Oct 24 '20 at 10:40
  • Why would it be different? Export() has its own parameters, ReflectionParameter instance didnt even get the "method" name, how could __toString() know what method I want to export? – John Smith Oct 24 '20 at 11:14

0 Answers0