Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,21 @@ jobs:
uses: ludeeus/[email protected]
with:
format: gcc

find-token-properties:
# The properties in the Tokens class have been deprecated.
# The code in this repository should always use the constants instead.
name: 'Find use of Tokens properties'
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Find uses
id: findprops
shell: cmd
run: |
findstr /S /N /C:"Tokens::$" *.php
IF %ERRORLEVEL% NEQ 1 (Echo Please use the Tokens constants instead of the properties &Exit /b 1)
IF %ERRORLEVEL% EQU 1 (Echo All good &Exit /b 0)
Loading