If you run civilint in PHP 8.2, you may sometimes get this warning. It is not a problem in your own file -- it's a problem within the linter.
FILE: /home/totten/src/civix/src/CRM/CivixBundle/Builder/Collection.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | ERROR | An error occurred during processing; checking has been aborted.
| | The error message was: Creation of dynamic property
| | Drupal\Sniffs\Commenting\FileCommentSniff::$currentFile is
| | deprecated in
| | /home/totten/bknix/vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Commenting/FileCommentSniff.php
| | on line 67
| | The error originated in the Drupal.Commenting.FileComment sniff on
| | line 67.
--------------------------------------------------------------------------------
If you run civilint in PHP 8.2, you may sometimes get this warning. It is not a problem in your own file -- it's a problem within the linter.