Skip to content

0.1.5

Choose a tag to compare

@staabm staabm released this 11 Jan 16:06
· 475 commits to main since this release
d09d427

DEMO

see phpstan-dba in action on the DEMO-PR

Major Features

  • Reuse the SyntaxErrorInPreparedStatementMethodRule within your PHPStan configuration to detect syntax errors in prepared queries, by registering a service:
services:
	-
		class: staabm\PHPStanDba\Rules\SyntaxErrorInPreparedStatementMethodRule
		tags: [phpstan.rules.rule]
		arguments:
			classMethods:
				- 'My\Connection::preparedQuery'

What's Changed

  • BC-Break: mv PdoStatementExecuteErrorMethodRule -> PdoStatementExecuteMethodRule by @staabm in #76
  • readme: added RuntimeConfiguration use-statements by @staabm in #75
  • simplify SyntaxError Rules by @staabm in #77
  • fix RecordingQueryReflector for prepared statements by @staabm in #79
  • added configurable SyntaxErrorInPreparedStatementMethodRule by @staabm in #78

Full Changelog: 0.1.4...0.1.5