SenseException, German
@SenseException@phpc.social avatar

Now that 8.1 is in Security Support and it's a great idea to update to 8.2, it's also a good idea to remind you of the existence of the class .
Example:
https://3v4l.org/pshYq
And because we love Attributes:
https://3v4l.org/C0j7M

Don't expose critical data.

timwolla,
@timwolla@phpc.social avatar

@SenseException To add to that: Attributes are backwards compatible, they don't need to be backed by a class. Thus can be applied to code that still needs to run on 8.1, without breaking anything (e.g. libraries). Below PHP 8.2 it will not do anything by default, but for the case of SensitiveParameter this doesn't matter, as you are no worse off than without the attribute. And libraries could still detect the attribute in stack traces by themselves!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines