Changeset View
Changeset View
Standalone View
Standalone View
src/xsprintf/qsprintf.php
| Show First 20 Lines • Show All 485 Lines • ▼ Show 20 Lines | case 'K': | ||||
| $query, | $query, | ||||
| pht('Expected a scalar or null for %%%s conversion.', $type)); | pht('Expected a scalar or null for %%%s conversion.', $type)); | ||||
| } | } | ||||
| break; | break; | ||||
| case 'R': | case 'R': | ||||
| if (!($value instanceof AphrontDatabaseTableRefInterface)) { | if (!($value instanceof AphrontDatabaseTableRefInterface)) { | ||||
| throw new AphrontParameterQueryException( | throw new AphrontParameterQueryException( | ||||
| $query, | |||||
| pht( | pht( | ||||
| 'Parameter to "%s" conversion in "qsprintf(...)" is not an '. | 'Parameter to "%s" conversion in "qsprintf(...)" is not an '. | ||||
| 'instance of AphrontDatabaseTableRefInterface.', | 'instance of AphrontDatabaseTableRefInterface.', | ||||
| '%R')); | '%R')); | ||||
| } | } | ||||
| break; | break; | ||||
| case 'P': | case 'P': | ||||
| if (!($value instanceof PhutilOpaqueEnvelope)) { | if (!($value instanceof PhutilOpaqueEnvelope)) { | ||||
| throw new AphrontParameterQueryException( | throw new AphrontParameterQueryException( | ||||
| $query, | |||||
| pht( | pht( | ||||
| 'Parameter to "%s" conversion in "qsprintf(...)" is not an '. | 'Parameter to "%s" conversion in "qsprintf(...)" is not an '. | ||||
| 'instance of PhutilOpaqueEnvelope.', | 'instance of PhutilOpaqueEnvelope.', | ||||
| '%P')); | '%P')); | ||||
| } | } | ||||
| break; | break; | ||||
| default: | default: | ||||
| throw new XsprintfUnknownConversionException($type); | throw new XsprintfUnknownConversionException($type); | ||||
| } | } | ||||
| } | } | ||||