Changeset 3444561
- Timestamp:
- 01/22/2026 06:13:56 AM (2 months ago)
- Location:
- astrology
- Files:
-
- 62 edited
- 1 copied
-
tags/1.4.9 (copied) (copied from astrology/trunk)
-
tags/1.4.9/astrology.php (modified) (2 diffs)
-
tags/1.4.9/dependencies/vendor/autoload.php (modified) (1 diff)
-
tags/1.4.9/dependencies/vendor/composer/ClassLoader.php (modified) (2 diffs)
-
tags/1.4.9/dependencies/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.4.9/dependencies/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/1.4.9/dependencies/vendor/kriswallsmith/buzz/lib/Client/MultiCurl.php (modified) (1 diff)
-
tags/1.4.9/dependencies/vendor/kriswallsmith/buzz/lib/Message/ResponseBuilder.php (modified) (1 diff)
-
tags/1.4.9/dependencies/vendor/kriswallsmith/buzz/lib/Middleware/Cookie/Cookie.php (modified) (1 diff)
-
tags/1.4.9/dependencies/vendor/kriswallsmith/buzz/lib/Middleware/DigestAuthMiddleware.php (modified) (4 diffs)
-
tags/1.4.9/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Transformer.php (modified) (3 diffs)
-
tags/1.4.9/dependencies/vendor/ralouphie/getallheaders/src/getallheaders.php (modified) (1 diff)
-
tags/1.4.9/dependencies/vendor/slim/psr7/src/Headers.php (modified) (1 diff)
-
tags/1.4.9/dependencies/vendor/symfony/cache/Adapter/AbstractAdapter.php (modified) (4 diffs)
-
tags/1.4.9/dependencies/vendor/symfony/cache/Adapter/AbstractTagAwareAdapter.php (modified) (2 diffs)
-
tags/1.4.9/dependencies/vendor/symfony/cache/Adapter/FilesystemTagAwareAdapter.php (modified) (1 diff)
-
tags/1.4.9/dependencies/vendor/symfony/cache/Adapter/ProxyAdapter.php (modified) (3 diffs)
-
tags/1.4.9/dependencies/vendor/symfony/cache/Adapter/RedisTagAwareAdapter.php (modified) (2 diffs)
-
tags/1.4.9/dependencies/vendor/symfony/cache/Marshaller/TagAwareMarshaller.php (modified) (1 diff)
-
tags/1.4.9/dependencies/vendor/symfony/cache/Simple/AbstractCache.php (modified) (1 diff)
-
tags/1.4.9/dependencies/vendor/symfony/cache/Traits/ApcuTrait.php (modified) (1 diff)
-
tags/1.4.9/dependencies/vendor/symfony/cache/Traits/MemcachedTrait.php (modified) (2 diffs)
-
tags/1.4.9/dependencies/vendor/symfony/cache/Traits/PhpFilesTrait.php (modified) (1 diff)
-
tags/1.4.9/dependencies/vendor/symfony/cache/Traits/RedisTrait.php (modified) (3 diffs)
-
tags/1.4.9/dependencies/vendor/symfony/options-resolver/OptionsResolver.php (modified) (1 diff)
-
tags/1.4.9/dependencies/vendor/symfony/var-exporter/Internal/Exporter.php (modified) (4 diffs)
-
tags/1.4.9/locale/en.php (modified) (1 diff)
-
tags/1.4.9/readme.txt (modified) (2 diffs)
-
tags/1.4.9/src/vendor/autoload.php (modified) (1 diff)
-
tags/1.4.9/src/vendor/composer/ClassLoader.php (modified) (2 diffs)
-
tags/1.4.9/src/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/1.4.9/src/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/astrology.php (modified) (2 diffs)
-
trunk/dependencies/vendor/autoload.php (modified) (1 diff)
-
trunk/dependencies/vendor/composer/ClassLoader.php (modified) (2 diffs)
-
trunk/dependencies/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/dependencies/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/dependencies/vendor/kriswallsmith/buzz/lib/Client/MultiCurl.php (modified) (1 diff)
-
trunk/dependencies/vendor/kriswallsmith/buzz/lib/Message/ResponseBuilder.php (modified) (1 diff)
-
trunk/dependencies/vendor/kriswallsmith/buzz/lib/Middleware/Cookie/Cookie.php (modified) (1 diff)
-
trunk/dependencies/vendor/kriswallsmith/buzz/lib/Middleware/DigestAuthMiddleware.php (modified) (4 diffs)
-
trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Transformer.php (modified) (3 diffs)
-
trunk/dependencies/vendor/ralouphie/getallheaders/src/getallheaders.php (modified) (1 diff)
-
trunk/dependencies/vendor/slim/psr7/src/Headers.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Adapter/AbstractAdapter.php (modified) (4 diffs)
-
trunk/dependencies/vendor/symfony/cache/Adapter/AbstractTagAwareAdapter.php (modified) (2 diffs)
-
trunk/dependencies/vendor/symfony/cache/Adapter/FilesystemTagAwareAdapter.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Adapter/ProxyAdapter.php (modified) (3 diffs)
-
trunk/dependencies/vendor/symfony/cache/Adapter/RedisTagAwareAdapter.php (modified) (2 diffs)
-
trunk/dependencies/vendor/symfony/cache/Marshaller/TagAwareMarshaller.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Simple/AbstractCache.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Traits/ApcuTrait.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Traits/MemcachedTrait.php (modified) (2 diffs)
-
trunk/dependencies/vendor/symfony/cache/Traits/PhpFilesTrait.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/cache/Traits/RedisTrait.php (modified) (3 diffs)
-
trunk/dependencies/vendor/symfony/options-resolver/OptionsResolver.php (modified) (1 diff)
-
trunk/dependencies/vendor/symfony/var-exporter/Internal/Exporter.php (modified) (4 diffs)
-
trunk/locale/en.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/vendor/autoload.php (modified) (1 diff)
-
trunk/src/vendor/composer/ClassLoader.php (modified) (2 diffs)
-
trunk/src/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/src/vendor/composer/autoload_static.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
astrology/tags/1.4.9/astrology.php
r3378058 r3444561 12 12 * Plugin URI: https://api.prokerala.com 13 13 * Description: Integrate astrology calculators powered by Prokerala's Astrology API 14 * Version: 1.4. 814 * Version: 1.4.9 15 15 * Author: Prokerala 16 16 * Author URI: https://www.prokerala.com … … 46 46 use Prokerala\WP\Astrology\Plugin; 47 47 48 const PK_ASTROLOGY_VERSION = '1.4. 8';48 const PK_ASTROLOGY_VERSION = '1.4.9'; 49 49 const PK_ASTROLOGY_PHP_MINIMUM = '7.2.0'; 50 50 const PK_ASTROLOGY_PLUGIN_MAIN_FILE = __FILE__; -
astrology/tags/1.4.9/dependencies/vendor/autoload.php
r3378058 r3444561 20 20 require_once __DIR__ . '/composer/autoload_real.php'; 21 21 22 return ComposerAutoloaderInitfa ef6a8806054af83861b6add740b871::getLoader();22 return ComposerAutoloaderInitfacddfc376cf22e3708ce05f95fa2650::getLoader(); -
astrology/tags/1.4.9/dependencies/vendor/composer/ClassLoader.php
r2952051 r3444561 499 499 $subPath = $class; 500 500 while (false !== $lastPos = strrpos($subPath, '\\')) { 501 $subPath = substr($subPath, 0, $lastPos);501 $subPath = (string) substr($subPath, 0, $lastPos); 502 502 $search = $subPath . '\\'; 503 503 if (isset($this->prefixDirsPsr4[$search])) { … … 523 523 // namespaced class name 524 524 $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) 525 . strtr( substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);525 . strtr((string) substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); 526 526 } else { 527 527 // PEAR-like class name -
astrology/tags/1.4.9/dependencies/vendor/composer/autoload_real.php
r3378058 r3444561 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInitfa ef6a8806054af83861b6add740b8715 class ComposerAutoloaderInitfacddfc376cf22e3708ce05f95fa2650 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInitfa ef6a8806054af83861b6add740b871', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitfacddfc376cf22e3708ce05f95fa2650', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInitfa ef6a8806054af83861b6add740b871', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitfacddfc376cf22e3708ce05f95fa2650', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInitfa ef6a8806054af83861b6add740b871::getInitializer($loader));30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInitfacddfc376cf22e3708ce05f95fa2650::getInitializer($loader)); 31 31 32 32 $loader->setClassMapAuthoritative(true); -
astrology/tags/1.4.9/dependencies/vendor/composer/autoload_static.php
r3378058 r3444561 5 5 namespace Prokerala_WP_Astrology_Composer\Autoload; 6 6 7 class ComposerStaticInitfa ef6a8806054af83861b6add740b8717 class ComposerStaticInitfacddfc376cf22e3708ce05f95fa2650 8 8 { 9 9 public static $classMap = array ( … … 607 607 { 608 608 return \Closure::bind(function () use ($loader) { 609 $loader->classMap = ComposerStaticInitfa ef6a8806054af83861b6add740b871::$classMap;609 $loader->classMap = ComposerStaticInitfacddfc376cf22e3708ce05f95fa2650::$classMap; 610 610 611 611 }, null, ClassLoader::class); -
astrology/tags/1.4.9/dependencies/vendor/kriswallsmith/buzz/lib/Client/MultiCurl.php
r3104518 r3444561 193 193 foreach ($headers as $header) { 194 194 if (0 === strpos($header, ':path:')) { 195 $path = substr($header, 6);195 $path = (string) substr($header, 6); 196 196 $url = (string) curl_getinfo($handle)['url']; 197 197 $url = str_replace((string) parse_url($url, \PHP_URL_PATH), $path, $url); -
astrology/tags/1.4.9/dependencies/vendor/kriswallsmith/buzz/lib/Message/ResponseBuilder.php
r3326192 r3444561 31 31 public function getResponseFromRawInput(string $raw, int $headerSize): ResponseInterface 32 32 { 33 $headers = substr($raw, 0, $headerSize);33 $headers = (string) substr($raw, 0, $headerSize); 34 34 $this->parseHttpHeaders(explode("\n", $headers)); 35 $this->writeBody( substr($raw, $headerSize));35 $this->writeBody((string) substr($raw, $headerSize)); 36 36 return $this->getResponse(); 37 37 } -
astrology/tags/1.4.9/dependencies/vendor/kriswallsmith/buzz/lib/Middleware/Cookie/Cookie.php
r3326192 r3444561 73 73 $cookieDomain = $this->getAttribute(static::ATTR_DOMAIN) ?? ''; 74 74 if (0 === strpos($cookieDomain, '.')) { 75 $pattern = '/\b' . preg_quote( substr($cookieDomain, 1), '/') . '$/i';75 $pattern = '/\b' . preg_quote((string) substr($cookieDomain, 1), '/') . '$/i'; 76 76 return (bool) preg_match($pattern, $domain); 77 77 } else { -
astrology/tags/1.4.9/dependencies/vendor/kriswallsmith/buzz/lib/Middleware/DigestAuthMiddleware.php
r3326192 r3444561 288 288 } 289 289 // Remove the last comma from the header 290 $header = substr($header, 0, \strlen($header) - 1);290 $header = (string) substr($header, 0, \strlen($header) - 1); 291 291 // Discard the Client Nonce if OPTION_DISCARD_CLIENT_NONCE is set. 292 292 if ($this->options & self::OPTION_DISCARD_CLIENT_NONCE) { … … 518 518 $this->setAuthenticationMethod('Digest'); 519 519 // Remove "Digest " from start of header 520 $wwwAuthenticate = substr($wwwAuthenticate, 7, \strlen($wwwAuthenticate) - 7);520 $wwwAuthenticate = (string) substr($wwwAuthenticate, 7, \strlen($wwwAuthenticate) - 7); 521 521 $nameValuePairs = $this->parseNameValuePairs($wwwAuthenticate); 522 522 foreach ($nameValuePairs as $name => $value) { … … 546 546 $this->setAuthenticationMethod('Basic'); 547 547 // Remove "Basic " from start of header 548 $wwwAuthenticate = substr($wwwAuthenticate, 6, \strlen($wwwAuthenticate) - 6);548 $wwwAuthenticate = (string) substr($wwwAuthenticate, 6, \strlen($wwwAuthenticate) - 6); 549 549 $nameValuePairs = $this->parseNameValuePairs($wwwAuthenticate); 550 550 foreach ($nameValuePairs as $name => $value) { … … 704 704 if ($str) { 705 705 if ('"' == substr($str, 0, 1)) { 706 $str = substr($str, 1, \strlen($str) - 1);706 $str = (string) substr($str, 1, \strlen($str) - 1); 707 707 } 708 708 if ('"' == substr($str, \strlen($str) - 1, 1)) { 709 $str = substr($str, 0, \strlen($str) - 1);709 $str = (string) substr($str, 0, \strlen($str) - 1); 710 710 } 711 711 } -
astrology/tags/1.4.9/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Transformer.php
r3173306 r3444561 131 131 $isArray = '[]' === substr($type, -2); 132 132 if ($isArray) { 133 $type = substr($type, 0, -2);133 $type = (string) substr($type, 0, -2); 134 134 } 135 135 if (isset($scalarTypes[$type])) { … … 140 140 $type = $namespace . '\\' . $type; 141 141 } else { 142 $type = substr($type, 1);142 $type = (string) substr($type, 1); 143 143 } 144 144 $resolvedTypes[] = $type . ($isArray ? '[]' : ''); … … 184 184 foreach ($data as $val) { 185 185 \assert($val instanceof \stdClass); 186 $paramValue[] = $this->create( substr($paramTypes[0], 0, -2), $val);186 $paramValue[] = $this->create((string) substr($paramTypes[0], 0, -2), $val); 187 187 // @phpstan-ignore-line 188 188 } -
astrology/tags/1.4.9/dependencies/vendor/ralouphie/getallheaders/src/getallheaders.php
r2513947 r3444561 20 20 foreach ($_SERVER as $key => $value) { 21 21 if (substr($key, 0, 5) === 'HTTP_') { 22 $key = substr($key, 5);22 $key = (string) substr($key, 5); 23 23 if (!isset($copy_server[$key]) || !isset($_SERVER[$key])) { 24 24 $key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key)))); -
astrology/tags/1.4.9/dependencies/vendor/slim/psr7/src/Headers.php
r3326192 r3444561 138 138 } 139 139 if (strpos(strtolower($name), 'http-') === 0) { 140 $name = substr($name, 5);140 $name = (string) substr($name, 5); 141 141 } 142 142 return $name; -
astrology/tags/1.4.9/dependencies/vendor/symfony/cache/Adapter/AbstractAdapter.php
r3173306 r3444561 43 43 $item->value = $v = $value; 44 44 $item->isHit = $isHit; 45 // Detect wrapped values that encode for their expiry and creation duration46 // For compactness, these values are packed in the key of an array using47 // magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F48 45 reset($v); 49 46 // Detect wrapped values that encode for their expiry and creation duration … … 52 49 if (\is_array($v) && 1 === \count($v) && 10 === \strlen($k = (string) key($v)) && "\x9d" === $k[0] && "\x00" === $k[5] && "_" === $k[9]) { 53 50 $item->value = $v[$k]; 54 $v = unpack('Ve/Nc', substr($k, 1, -1));51 $v = unpack('Ve/Nc', (string) substr($k, 1, -1)); 55 52 $item->metadata[CacheItem::METADATA_EXPIRY] = $v['e'] + CacheItem::METADATA_EXPIRY_OFFSET; 56 53 $item->metadata[CacheItem::METADATA_CTIME] = $v['c']; … … 158 155 $type = \is_object($v) ? \get_class($v) : \gettype($v); 159 156 $message = sprintf('Failed to save key "{key}" of type %s%s', $type, $e instanceof \Exception ? ': ' . $e->getMessage() : '.'); 160 CacheItem::log($this->logger, $message, ['key' => substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]);157 CacheItem::log($this->logger, $message, ['key' => (string) substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]); 161 158 } 162 159 } else { … … 180 177 $type = \is_object($v) ? \get_class($v) : \gettype($v); 181 178 $message = sprintf('Failed to save key "{key}" of type %s%s', $type, $e instanceof \Exception ? ': ' . $e->getMessage() : '.'); 182 CacheItem::log($this->logger, $message, ['key' => substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]);179 CacheItem::log($this->logger, $message, ['key' => (string) substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]); 183 180 } 184 181 } -
astrology/tags/1.4.9/dependencies/vendor/symfony/cache/Adapter/AbstractTagAwareAdapter.php
r3173306 r3444561 178 178 $type = \is_object($v) ? \get_class($v) : \gettype($v); 179 179 $message = sprintf('Failed to save key "{key}" of type %s%s', $type, $e instanceof \Exception ? ': ' . $e->getMessage() : '.'); 180 CacheItem::log($this->logger, $message, ['key' => substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]);180 CacheItem::log($this->logger, $message, ['key' => (string) substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]); 181 181 } 182 182 } else { … … 201 201 $type = \is_object($v) ? \get_class($v) : \gettype($v); 202 202 $message = sprintf('Failed to save key "{key}" of type %s%s', $type, $e instanceof \Exception ? ': ' . $e->getMessage() : '.'); 203 CacheItem::log($this->logger, $message, ['key' => substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]);203 CacheItem::log($this->logger, $message, ['key' => (string) substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]); 204 204 } 205 205 } -
astrology/tags/1.4.9/dependencies/vendor/symfony/cache/Adapter/FilesystemTagAwareAdapter.php
r3173306 r3444561 132 132 $meta[9] = "\x00"; 133 133 $tagLen = unpack('Nlen', $meta, 9)['len']; 134 $meta = substr($meta, 13, $tagLen);134 $meta = (string) substr($meta, 13, $tagLen); 135 135 if (0 < $tagLen -= \strlen($meta)) { 136 136 $meta .= fread($h, $tagLen); -
astrology/tags/1.4.9/dependencies/vendor/symfony/cache/Adapter/ProxyAdapter.php
r3173306 r3444561 49 49 $item->innerItem = $innerItem; 50 50 $item->poolHash = $poolHash; 51 // Detect wrapped values that encode for their expiry and creation duration52 // For compactness, these values are packed in the key of an array using53 // magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F54 51 reset($v); 55 52 // Detect wrapped values that encode for their expiry and creation duration … … 58 55 if (\is_array($v) && 1 === \count($v) && 10 === \strlen($k = (string) key($v)) && "\x9d" === $k[0] && "\x00" === $k[5] && "_" === $k[9]) { 59 56 $item->value = $v[$k]; 60 $v = unpack('Ve/Nc', substr($k, 1, -1));57 $v = unpack('Ve/Nc', (string) substr($k, 1, -1)); 61 58 $item->metadata[CacheItem::METADATA_EXPIRY] = $v['e'] + CacheItem::METADATA_EXPIRY_OFFSET; 62 59 $item->metadata[CacheItem::METADATA_CTIME] = $v['c']; … … 224 221 foreach ($items as $key => $item) { 225 222 if ($this->namespaceLen) { 226 $key = substr($key, $this->namespaceLen);223 $key = (string) substr($key, $this->namespaceLen); 227 224 } 228 225 yield $key => $f($key, $item); -
astrology/tags/1.4.9/dependencies/vendor/symfony/cache/Adapter/RedisTagAwareAdapter.php
r3173306 r3444561 143 143 foreach ($results as $id => $result) { 144 144 if ($result instanceof \RedisException || $result instanceof ErrorInterface) { 145 CacheItem::log($this->logger, 'Failed to delete key "{key}": ' . $result->getMessage(), ['key' => substr($id, \strlen($this->namespace)), 'exception' => $result]);145 CacheItem::log($this->logger, 'Failed to delete key "{key}": ' . $result->getMessage(), ['key' => (string) substr($id, \strlen($this->namespace)), 'exception' => $result]); 146 146 continue; 147 147 } … … 227 227 foreach ($results as $id => $values) { 228 228 if ($values instanceof \RedisException || $values instanceof ErrorInterface) { 229 CacheItem::log($this->logger, 'Failed to invalidate key "{key}": ' . $values->getMessage(), ['key' => substr($id, \strlen($this->namespace)), 'exception' => $values]);229 CacheItem::log($this->logger, 'Failed to invalidate key "{key}": ' . $values->getMessage(), ['key' => (string) substr($id, \strlen($this->namespace)), 'exception' => $values]); 230 230 $success = \false; 231 231 continue; -
astrology/tags/1.4.9/dependencies/vendor/symfony/cache/Marshaller/TagAwareMarshaller.php
r3173306 r3444561 65 65 } 66 66 // data consists of value, tags and metadata which we need to unpack 67 $meta = substr($value, 1, 12);67 $meta = (string) substr($value, 1, 12); 68 68 $meta[8] = "\x00"; 69 69 $tagLen = unpack('Nlen', $meta, 8)['len']; 70 70 $meta = substr($meta, 0, 8); 71 return ['value' => $this->marshaller->unmarshall( substr($value, 13 + $tagLen)), 'tags' => $tagLen ? $this->marshaller->unmarshall(substr($value, 13, $tagLen)) : [], 'meta' => "\x00\x00\x00\x00\x00\x00\x00\x00" === $meta ? null : $meta];71 return ['value' => $this->marshaller->unmarshall((string) substr($value, 13 + $tagLen)), 'tags' => $tagLen ? $this->marshaller->unmarshall((string) substr($value, 13, $tagLen)) : [], 'meta' => "\x00\x00\x00\x00\x00\x00\x00\x00" === $meta ? null : $meta]; 72 72 } 73 73 } -
astrology/tags/1.4.9/dependencies/vendor/symfony/cache/Simple/AbstractCache.php
r3173306 r3444561 122 122 $keys = []; 123 123 foreach (\is_array($e) ? $e : array_keys($valuesById) as $id) { 124 $keys[] = substr($id, \strlen($this->namespace));124 $keys[] = (string) substr($id, \strlen($this->namespace)); 125 125 } 126 126 $message = 'Failed to save values' . ($e instanceof \Exception ? ': ' . $e->getMessage() : '.'); -
astrology/tags/1.4.9/dependencies/vendor/symfony/cache/Traits/ApcuTrait.php
r3173306 r3444561 103 103 } catch (\Throwable $e) { 104 104 if (1 === \count($values)) { 105 // Workaround https://github.com/krakjoe/apcu/issues/170106 105 reset($values); 107 106 // Workaround https://github.com/krakjoe/apcu/issues/170 -
astrology/tags/1.4.9/dependencies/vendor/symfony/cache/Traits/MemcachedTrait.php
r3173306 r3444561 118 118 $hosts[$host] = [$host, 11211, (int) $weight]; 119 119 } else { 120 $hosts[$host] = [ substr($host, 0, $port), (int) substr($host, 1 + $port), (int) $weight];120 $hosts[$host] = [(string) substr($host, 0, $port), (int) substr($host, 1 + $port), (int) $weight]; 121 121 } 122 122 } … … 135 135 if (isset($params['path']) && preg_match('#/(\d+)$#', $params['path'], $m)) { 136 136 $params['weight'] = $m[1]; 137 $params['path'] = substr($params['path'], 0, -\strlen($m[0]));137 $params['path'] = (string) substr($params['path'], 0, -\strlen($m[0])); 138 138 } 139 139 $params += ['host' => $params['host'] ?? $params['path'], 'port' => isset($params['host']) ? 11211 : null, 'weight' => 0]; -
astrology/tags/1.4.9/dependencies/vendor/symfony/cache/Traits/PhpFilesTrait.php
r3104518 r3444561 251 251 return ''; 252 252 } 253 $encodedKey = substr(fgets($h), 8);253 $encodedKey = (string) substr(fgets($h), 8); 254 254 fclose($h); 255 255 return rawurldecode(rtrim($encodedKey)); -
astrology/tags/1.4.9/dependencies/vendor/symfony/cache/Traits/RedisTrait.php
r3173306 r3444561 110 110 $hosts[$host] = ['scheme' => $tcpScheme, 'host' => $host, 'port' => 6379] + $parameters; 111 111 } elseif ($port = (int) substr($host, 1 + $i)) { 112 $hosts[$host] = ['scheme' => $tcpScheme, 'host' => substr($host, 0, $i), 'port' => $port] + $parameters;112 $hosts[$host] = ['scheme' => $tcpScheme, 'host' => (string) substr($host, 0, $i), 'port' => $port] + $parameters; 113 113 } else { 114 $hosts[$host] = ['scheme' => 'unix', 'path' => substr($host, 0, $i)] + $parameters;114 $hosts[$host] = ['scheme' => 'unix', 'path' => (string) substr($host, 0, $i)] + $parameters; 115 115 } 116 116 } … … 122 122 if (preg_match('#/(\d+)$#', $params['path'], $m)) { 123 123 $params['dbindex'] = $m[1]; 124 $params['path'] = substr($params['path'], 0, -\strlen($m[0]));124 $params['path'] = (string) substr($params['path'], 0, -\strlen($m[0])); 125 125 } elseif (isset($params['host'])) { 126 126 throw new InvalidArgumentException(sprintf('Invalid Redis DSN: "%s", the "dbindex" parameter must be a number.', $dsn)); … … 362 362 if ($prefixLen) { 363 363 foreach ($keys as $i => $key) { 364 $keys[$i] = substr($key, $prefixLen);364 $keys[$i] = (string) substr($key, $prefixLen); 365 365 } 366 366 } -
astrology/tags/1.4.9/dependencies/vendor/symfony/options-resolver/OptionsResolver.php
r3173306 r3444561 980 980 { 981 981 if (\is_array($value) && '[]' === substr($type, -2)) { 982 $type = substr($type, 0, -2);982 $type = (string) substr($type, 0, -2); 983 983 $valid = \true; 984 984 foreach ($value as $val) { -
astrology/tags/1.4.9/dependencies/vendor/symfony/var-exporter/Internal/Exporter.php
r3173306 r3444561 128 128 $c = \PHP_VERSION_ID >= 80100 && $reflector->hasProperty($n) && ($p = $reflector->getProperty($n))->isReadOnly() ? $p->class : 'stdClass'; 129 129 } elseif ('*' === $n[1]) { 130 $n = substr($n, 3);130 $n = (string) substr($n, 3); 131 131 $c = $reflector->getProperty($n)->class; 132 132 if ('Error' === $c) { … … 137 137 } else { 138 138 $i = strpos($n, "\x00", 2); 139 $c = substr($n, 1, $i - 1);140 $n = substr($n, 1 + $i);139 $c = (string) substr($n, 1, $i - 1); 140 $n = (string) substr($n, 1 + $i); 141 141 } 142 142 if (null !== $sleep) { … … 210 210 $m[1] = sprintf('\'."%s".\'', str_replace(["\x00", "\r", "\n", "", "", "", "", "", "", "", "", "", '\n\\'], ['\0', '\r', '\n', '\u{202A}', '\u{202B}', '\u{202D}', '\u{202E}', '\u{2066}', '\u{2067}', '\u{2068}', '\u{202C}', '\u{2069}', '\n"' . "\n" . $subIndent . '."\\'], $m[1])); 211 211 if ("'" === $m[2]) { 212 return substr($m[1], 0, -2);212 return (string) substr($m[1], 0, -2); 213 213 } 214 214 if ('n".\'' === substr($m[1], -4)) { … … 218 218 }, $code, -1, $count); 219 219 if ($count && strncmp($code, "''.", strlen("''.")) === 0) { 220 $code = substr($code, 3);220 $code = (string) substr($code, 3); 221 221 } 222 222 return $code; -
astrology/tags/1.4.9/locale/en.php
r3378058 r3444561 303 303 'sun_chart' => 'Sun Chart', 304 304 'moon_chart' => 'Moon Chart', 305 'birth_time' => 'Birth Time', 305 306 ]; -
astrology/tags/1.4.9/readme.txt
r3378058 r3444561 4 4 Requires at least: 5.6 5 5 Tested up to: 6.8 6 Stable tag: 1.4. 86 Stable tag: 1.4.9 7 7 Requires PHP: 7.2.0 8 8 License: GPLV2+ … … 252 252 == Changelog == 253 253 254 = 1.4.9 = 255 * Fixed array missing key 256 254 257 = 1.4.8 = 255 258 * Added new `display_planet_positions` shortcode for kundli -
astrology/tags/1.4.9/src/vendor/autoload.php
r3378058 r3444561 20 20 require_once __DIR__ . '/composer/autoload_real.php'; 21 21 22 return ComposerAutoloaderInit 27cdb6d5d360fa861fae7c119020b116::getLoader();22 return ComposerAutoloaderInita2f6d3d622d2439354e6302d037051f8::getLoader(); -
astrology/tags/1.4.9/src/vendor/composer/ClassLoader.php
r2952051 r3444561 499 499 $subPath = $class; 500 500 while (false !== $lastPos = strrpos($subPath, '\\')) { 501 $subPath = substr($subPath, 0, $lastPos);501 $subPath = (string) substr($subPath, 0, $lastPos); 502 502 $search = $subPath . '\\'; 503 503 if (isset($this->prefixDirsPsr4[$search])) { … … 523 523 // namespaced class name 524 524 $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) 525 . strtr( substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);525 . strtr((string) substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); 526 526 } else { 527 527 // PEAR-like class name -
astrology/tags/1.4.9/src/vendor/composer/autoload_real.php
r3378058 r3444561 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 27cdb6d5d360fa861fae7c119020b1165 class ComposerAutoloaderInita2f6d3d622d2439354e6302d037051f8 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 27cdb6d5d360fa861fae7c119020b116', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInita2f6d3d622d2439354e6302d037051f8', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 27cdb6d5d360fa861fae7c119020b116', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInita2f6d3d622d2439354e6302d037051f8', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit 27cdb6d5d360fa861fae7c119020b116::getInitializer($loader));30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInita2f6d3d622d2439354e6302d037051f8::getInitializer($loader)); 31 31 32 32 $loader->setClassMapAuthoritative(true); -
astrology/tags/1.4.9/src/vendor/composer/autoload_static.php
r3378058 r3444561 5 5 namespace Prokerala_WP_Astrology_Composer\Autoload; 6 6 7 class ComposerStaticInit 27cdb6d5d360fa861fae7c119020b1167 class ComposerStaticInita2f6d3d622d2439354e6302d037051f8 8 8 { 9 9 public static $classMap = array ( … … 48 48 { 49 49 return \Closure::bind(function () use ($loader) { 50 $loader->classMap = ComposerStaticInit 27cdb6d5d360fa861fae7c119020b116::$classMap;50 $loader->classMap = ComposerStaticInita2f6d3d622d2439354e6302d037051f8::$classMap; 51 51 52 52 }, null, ClassLoader::class); -
astrology/trunk/astrology.php
r3378058 r3444561 12 12 * Plugin URI: https://api.prokerala.com 13 13 * Description: Integrate astrology calculators powered by Prokerala's Astrology API 14 * Version: 1.4. 814 * Version: 1.4.9 15 15 * Author: Prokerala 16 16 * Author URI: https://www.prokerala.com … … 46 46 use Prokerala\WP\Astrology\Plugin; 47 47 48 const PK_ASTROLOGY_VERSION = '1.4. 8';48 const PK_ASTROLOGY_VERSION = '1.4.9'; 49 49 const PK_ASTROLOGY_PHP_MINIMUM = '7.2.0'; 50 50 const PK_ASTROLOGY_PLUGIN_MAIN_FILE = __FILE__; -
astrology/trunk/dependencies/vendor/autoload.php
r3378058 r3444561 20 20 require_once __DIR__ . '/composer/autoload_real.php'; 21 21 22 return ComposerAutoloaderInitfa ef6a8806054af83861b6add740b871::getLoader();22 return ComposerAutoloaderInitfacddfc376cf22e3708ce05f95fa2650::getLoader(); -
astrology/trunk/dependencies/vendor/composer/ClassLoader.php
r2952051 r3444561 499 499 $subPath = $class; 500 500 while (false !== $lastPos = strrpos($subPath, '\\')) { 501 $subPath = substr($subPath, 0, $lastPos);501 $subPath = (string) substr($subPath, 0, $lastPos); 502 502 $search = $subPath . '\\'; 503 503 if (isset($this->prefixDirsPsr4[$search])) { … … 523 523 // namespaced class name 524 524 $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) 525 . strtr( substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);525 . strtr((string) substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); 526 526 } else { 527 527 // PEAR-like class name -
astrology/trunk/dependencies/vendor/composer/autoload_real.php
r3378058 r3444561 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInitfa ef6a8806054af83861b6add740b8715 class ComposerAutoloaderInitfacddfc376cf22e3708ce05f95fa2650 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInitfa ef6a8806054af83861b6add740b871', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInitfacddfc376cf22e3708ce05f95fa2650', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInitfa ef6a8806054af83861b6add740b871', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInitfacddfc376cf22e3708ce05f95fa2650', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInitfa ef6a8806054af83861b6add740b871::getInitializer($loader));30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInitfacddfc376cf22e3708ce05f95fa2650::getInitializer($loader)); 31 31 32 32 $loader->setClassMapAuthoritative(true); -
astrology/trunk/dependencies/vendor/composer/autoload_static.php
r3378058 r3444561 5 5 namespace Prokerala_WP_Astrology_Composer\Autoload; 6 6 7 class ComposerStaticInitfa ef6a8806054af83861b6add740b8717 class ComposerStaticInitfacddfc376cf22e3708ce05f95fa2650 8 8 { 9 9 public static $classMap = array ( … … 607 607 { 608 608 return \Closure::bind(function () use ($loader) { 609 $loader->classMap = ComposerStaticInitfa ef6a8806054af83861b6add740b871::$classMap;609 $loader->classMap = ComposerStaticInitfacddfc376cf22e3708ce05f95fa2650::$classMap; 610 610 611 611 }, null, ClassLoader::class); -
astrology/trunk/dependencies/vendor/kriswallsmith/buzz/lib/Client/MultiCurl.php
r3104518 r3444561 193 193 foreach ($headers as $header) { 194 194 if (0 === strpos($header, ':path:')) { 195 $path = substr($header, 6);195 $path = (string) substr($header, 6); 196 196 $url = (string) curl_getinfo($handle)['url']; 197 197 $url = str_replace((string) parse_url($url, \PHP_URL_PATH), $path, $url); -
astrology/trunk/dependencies/vendor/kriswallsmith/buzz/lib/Message/ResponseBuilder.php
r3326192 r3444561 31 31 public function getResponseFromRawInput(string $raw, int $headerSize): ResponseInterface 32 32 { 33 $headers = substr($raw, 0, $headerSize);33 $headers = (string) substr($raw, 0, $headerSize); 34 34 $this->parseHttpHeaders(explode("\n", $headers)); 35 $this->writeBody( substr($raw, $headerSize));35 $this->writeBody((string) substr($raw, $headerSize)); 36 36 return $this->getResponse(); 37 37 } -
astrology/trunk/dependencies/vendor/kriswallsmith/buzz/lib/Middleware/Cookie/Cookie.php
r3326192 r3444561 73 73 $cookieDomain = $this->getAttribute(static::ATTR_DOMAIN) ?? ''; 74 74 if (0 === strpos($cookieDomain, '.')) { 75 $pattern = '/\b' . preg_quote( substr($cookieDomain, 1), '/') . '$/i';75 $pattern = '/\b' . preg_quote((string) substr($cookieDomain, 1), '/') . '$/i'; 76 76 return (bool) preg_match($pattern, $domain); 77 77 } else { -
astrology/trunk/dependencies/vendor/kriswallsmith/buzz/lib/Middleware/DigestAuthMiddleware.php
r3326192 r3444561 288 288 } 289 289 // Remove the last comma from the header 290 $header = substr($header, 0, \strlen($header) - 1);290 $header = (string) substr($header, 0, \strlen($header) - 1); 291 291 // Discard the Client Nonce if OPTION_DISCARD_CLIENT_NONCE is set. 292 292 if ($this->options & self::OPTION_DISCARD_CLIENT_NONCE) { … … 518 518 $this->setAuthenticationMethod('Digest'); 519 519 // Remove "Digest " from start of header 520 $wwwAuthenticate = substr($wwwAuthenticate, 7, \strlen($wwwAuthenticate) - 7);520 $wwwAuthenticate = (string) substr($wwwAuthenticate, 7, \strlen($wwwAuthenticate) - 7); 521 521 $nameValuePairs = $this->parseNameValuePairs($wwwAuthenticate); 522 522 foreach ($nameValuePairs as $name => $value) { … … 546 546 $this->setAuthenticationMethod('Basic'); 547 547 // Remove "Basic " from start of header 548 $wwwAuthenticate = substr($wwwAuthenticate, 6, \strlen($wwwAuthenticate) - 6);548 $wwwAuthenticate = (string) substr($wwwAuthenticate, 6, \strlen($wwwAuthenticate) - 6); 549 549 $nameValuePairs = $this->parseNameValuePairs($wwwAuthenticate); 550 550 foreach ($nameValuePairs as $name => $value) { … … 704 704 if ($str) { 705 705 if ('"' == substr($str, 0, 1)) { 706 $str = substr($str, 1, \strlen($str) - 1);706 $str = (string) substr($str, 1, \strlen($str) - 1); 707 707 } 708 708 if ('"' == substr($str, \strlen($str) - 1, 1)) { 709 $str = substr($str, 0, \strlen($str) - 1);709 $str = (string) substr($str, 0, \strlen($str) - 1); 710 710 } 711 711 } -
astrology/trunk/dependencies/vendor/prokerala/astrology-sdk/src/Api/Astrology/Transformer.php
r3173306 r3444561 131 131 $isArray = '[]' === substr($type, -2); 132 132 if ($isArray) { 133 $type = substr($type, 0, -2);133 $type = (string) substr($type, 0, -2); 134 134 } 135 135 if (isset($scalarTypes[$type])) { … … 140 140 $type = $namespace . '\\' . $type; 141 141 } else { 142 $type = substr($type, 1);142 $type = (string) substr($type, 1); 143 143 } 144 144 $resolvedTypes[] = $type . ($isArray ? '[]' : ''); … … 184 184 foreach ($data as $val) { 185 185 \assert($val instanceof \stdClass); 186 $paramValue[] = $this->create( substr($paramTypes[0], 0, -2), $val);186 $paramValue[] = $this->create((string) substr($paramTypes[0], 0, -2), $val); 187 187 // @phpstan-ignore-line 188 188 } -
astrology/trunk/dependencies/vendor/ralouphie/getallheaders/src/getallheaders.php
r2513947 r3444561 20 20 foreach ($_SERVER as $key => $value) { 21 21 if (substr($key, 0, 5) === 'HTTP_') { 22 $key = substr($key, 5);22 $key = (string) substr($key, 5); 23 23 if (!isset($copy_server[$key]) || !isset($_SERVER[$key])) { 24 24 $key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key)))); -
astrology/trunk/dependencies/vendor/slim/psr7/src/Headers.php
r3326192 r3444561 138 138 } 139 139 if (strpos(strtolower($name), 'http-') === 0) { 140 $name = substr($name, 5);140 $name = (string) substr($name, 5); 141 141 } 142 142 return $name; -
astrology/trunk/dependencies/vendor/symfony/cache/Adapter/AbstractAdapter.php
r3173306 r3444561 43 43 $item->value = $v = $value; 44 44 $item->isHit = $isHit; 45 // Detect wrapped values that encode for their expiry and creation duration46 // For compactness, these values are packed in the key of an array using47 // magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F48 45 reset($v); 49 46 // Detect wrapped values that encode for their expiry and creation duration … … 52 49 if (\is_array($v) && 1 === \count($v) && 10 === \strlen($k = (string) key($v)) && "\x9d" === $k[0] && "\x00" === $k[5] && "_" === $k[9]) { 53 50 $item->value = $v[$k]; 54 $v = unpack('Ve/Nc', substr($k, 1, -1));51 $v = unpack('Ve/Nc', (string) substr($k, 1, -1)); 55 52 $item->metadata[CacheItem::METADATA_EXPIRY] = $v['e'] + CacheItem::METADATA_EXPIRY_OFFSET; 56 53 $item->metadata[CacheItem::METADATA_CTIME] = $v['c']; … … 158 155 $type = \is_object($v) ? \get_class($v) : \gettype($v); 159 156 $message = sprintf('Failed to save key "{key}" of type %s%s', $type, $e instanceof \Exception ? ': ' . $e->getMessage() : '.'); 160 CacheItem::log($this->logger, $message, ['key' => substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]);157 CacheItem::log($this->logger, $message, ['key' => (string) substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]); 161 158 } 162 159 } else { … … 180 177 $type = \is_object($v) ? \get_class($v) : \gettype($v); 181 178 $message = sprintf('Failed to save key "{key}" of type %s%s', $type, $e instanceof \Exception ? ': ' . $e->getMessage() : '.'); 182 CacheItem::log($this->logger, $message, ['key' => substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]);179 CacheItem::log($this->logger, $message, ['key' => (string) substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]); 183 180 } 184 181 } -
astrology/trunk/dependencies/vendor/symfony/cache/Adapter/AbstractTagAwareAdapter.php
r3173306 r3444561 178 178 $type = \is_object($v) ? \get_class($v) : \gettype($v); 179 179 $message = sprintf('Failed to save key "{key}" of type %s%s', $type, $e instanceof \Exception ? ': ' . $e->getMessage() : '.'); 180 CacheItem::log($this->logger, $message, ['key' => substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]);180 CacheItem::log($this->logger, $message, ['key' => (string) substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]); 181 181 } 182 182 } else { … … 201 201 $type = \is_object($v) ? \get_class($v) : \gettype($v); 202 202 $message = sprintf('Failed to save key "{key}" of type %s%s', $type, $e instanceof \Exception ? ': ' . $e->getMessage() : '.'); 203 CacheItem::log($this->logger, $message, ['key' => substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]);203 CacheItem::log($this->logger, $message, ['key' => (string) substr($id, \strlen($this->namespace)), 'exception' => $e instanceof \Exception ? $e : null]); 204 204 } 205 205 } -
astrology/trunk/dependencies/vendor/symfony/cache/Adapter/FilesystemTagAwareAdapter.php
r3173306 r3444561 132 132 $meta[9] = "\x00"; 133 133 $tagLen = unpack('Nlen', $meta, 9)['len']; 134 $meta = substr($meta, 13, $tagLen);134 $meta = (string) substr($meta, 13, $tagLen); 135 135 if (0 < $tagLen -= \strlen($meta)) { 136 136 $meta .= fread($h, $tagLen); -
astrology/trunk/dependencies/vendor/symfony/cache/Adapter/ProxyAdapter.php
r3173306 r3444561 49 49 $item->innerItem = $innerItem; 50 50 $item->poolHash = $poolHash; 51 // Detect wrapped values that encode for their expiry and creation duration52 // For compactness, these values are packed in the key of an array using53 // magic numbers in the form 9D-..-..-..-..-00-..-..-..-5F54 51 reset($v); 55 52 // Detect wrapped values that encode for their expiry and creation duration … … 58 55 if (\is_array($v) && 1 === \count($v) && 10 === \strlen($k = (string) key($v)) && "\x9d" === $k[0] && "\x00" === $k[5] && "_" === $k[9]) { 59 56 $item->value = $v[$k]; 60 $v = unpack('Ve/Nc', substr($k, 1, -1));57 $v = unpack('Ve/Nc', (string) substr($k, 1, -1)); 61 58 $item->metadata[CacheItem::METADATA_EXPIRY] = $v['e'] + CacheItem::METADATA_EXPIRY_OFFSET; 62 59 $item->metadata[CacheItem::METADATA_CTIME] = $v['c']; … … 224 221 foreach ($items as $key => $item) { 225 222 if ($this->namespaceLen) { 226 $key = substr($key, $this->namespaceLen);223 $key = (string) substr($key, $this->namespaceLen); 227 224 } 228 225 yield $key => $f($key, $item); -
astrology/trunk/dependencies/vendor/symfony/cache/Adapter/RedisTagAwareAdapter.php
r3173306 r3444561 143 143 foreach ($results as $id => $result) { 144 144 if ($result instanceof \RedisException || $result instanceof ErrorInterface) { 145 CacheItem::log($this->logger, 'Failed to delete key "{key}": ' . $result->getMessage(), ['key' => substr($id, \strlen($this->namespace)), 'exception' => $result]);145 CacheItem::log($this->logger, 'Failed to delete key "{key}": ' . $result->getMessage(), ['key' => (string) substr($id, \strlen($this->namespace)), 'exception' => $result]); 146 146 continue; 147 147 } … … 227 227 foreach ($results as $id => $values) { 228 228 if ($values instanceof \RedisException || $values instanceof ErrorInterface) { 229 CacheItem::log($this->logger, 'Failed to invalidate key "{key}": ' . $values->getMessage(), ['key' => substr($id, \strlen($this->namespace)), 'exception' => $values]);229 CacheItem::log($this->logger, 'Failed to invalidate key "{key}": ' . $values->getMessage(), ['key' => (string) substr($id, \strlen($this->namespace)), 'exception' => $values]); 230 230 $success = \false; 231 231 continue; -
astrology/trunk/dependencies/vendor/symfony/cache/Marshaller/TagAwareMarshaller.php
r3173306 r3444561 65 65 } 66 66 // data consists of value, tags and metadata which we need to unpack 67 $meta = substr($value, 1, 12);67 $meta = (string) substr($value, 1, 12); 68 68 $meta[8] = "\x00"; 69 69 $tagLen = unpack('Nlen', $meta, 8)['len']; 70 70 $meta = substr($meta, 0, 8); 71 return ['value' => $this->marshaller->unmarshall( substr($value, 13 + $tagLen)), 'tags' => $tagLen ? $this->marshaller->unmarshall(substr($value, 13, $tagLen)) : [], 'meta' => "\x00\x00\x00\x00\x00\x00\x00\x00" === $meta ? null : $meta];71 return ['value' => $this->marshaller->unmarshall((string) substr($value, 13 + $tagLen)), 'tags' => $tagLen ? $this->marshaller->unmarshall((string) substr($value, 13, $tagLen)) : [], 'meta' => "\x00\x00\x00\x00\x00\x00\x00\x00" === $meta ? null : $meta]; 72 72 } 73 73 } -
astrology/trunk/dependencies/vendor/symfony/cache/Simple/AbstractCache.php
r3173306 r3444561 122 122 $keys = []; 123 123 foreach (\is_array($e) ? $e : array_keys($valuesById) as $id) { 124 $keys[] = substr($id, \strlen($this->namespace));124 $keys[] = (string) substr($id, \strlen($this->namespace)); 125 125 } 126 126 $message = 'Failed to save values' . ($e instanceof \Exception ? ': ' . $e->getMessage() : '.'); -
astrology/trunk/dependencies/vendor/symfony/cache/Traits/ApcuTrait.php
r3173306 r3444561 103 103 } catch (\Throwable $e) { 104 104 if (1 === \count($values)) { 105 // Workaround https://github.com/krakjoe/apcu/issues/170106 105 reset($values); 107 106 // Workaround https://github.com/krakjoe/apcu/issues/170 -
astrology/trunk/dependencies/vendor/symfony/cache/Traits/MemcachedTrait.php
r3173306 r3444561 118 118 $hosts[$host] = [$host, 11211, (int) $weight]; 119 119 } else { 120 $hosts[$host] = [ substr($host, 0, $port), (int) substr($host, 1 + $port), (int) $weight];120 $hosts[$host] = [(string) substr($host, 0, $port), (int) substr($host, 1 + $port), (int) $weight]; 121 121 } 122 122 } … … 135 135 if (isset($params['path']) && preg_match('#/(\d+)$#', $params['path'], $m)) { 136 136 $params['weight'] = $m[1]; 137 $params['path'] = substr($params['path'], 0, -\strlen($m[0]));137 $params['path'] = (string) substr($params['path'], 0, -\strlen($m[0])); 138 138 } 139 139 $params += ['host' => $params['host'] ?? $params['path'], 'port' => isset($params['host']) ? 11211 : null, 'weight' => 0]; -
astrology/trunk/dependencies/vendor/symfony/cache/Traits/PhpFilesTrait.php
r3104518 r3444561 251 251 return ''; 252 252 } 253 $encodedKey = substr(fgets($h), 8);253 $encodedKey = (string) substr(fgets($h), 8); 254 254 fclose($h); 255 255 return rawurldecode(rtrim($encodedKey)); -
astrology/trunk/dependencies/vendor/symfony/cache/Traits/RedisTrait.php
r3173306 r3444561 110 110 $hosts[$host] = ['scheme' => $tcpScheme, 'host' => $host, 'port' => 6379] + $parameters; 111 111 } elseif ($port = (int) substr($host, 1 + $i)) { 112 $hosts[$host] = ['scheme' => $tcpScheme, 'host' => substr($host, 0, $i), 'port' => $port] + $parameters;112 $hosts[$host] = ['scheme' => $tcpScheme, 'host' => (string) substr($host, 0, $i), 'port' => $port] + $parameters; 113 113 } else { 114 $hosts[$host] = ['scheme' => 'unix', 'path' => substr($host, 0, $i)] + $parameters;114 $hosts[$host] = ['scheme' => 'unix', 'path' => (string) substr($host, 0, $i)] + $parameters; 115 115 } 116 116 } … … 122 122 if (preg_match('#/(\d+)$#', $params['path'], $m)) { 123 123 $params['dbindex'] = $m[1]; 124 $params['path'] = substr($params['path'], 0, -\strlen($m[0]));124 $params['path'] = (string) substr($params['path'], 0, -\strlen($m[0])); 125 125 } elseif (isset($params['host'])) { 126 126 throw new InvalidArgumentException(sprintf('Invalid Redis DSN: "%s", the "dbindex" parameter must be a number.', $dsn)); … … 362 362 if ($prefixLen) { 363 363 foreach ($keys as $i => $key) { 364 $keys[$i] = substr($key, $prefixLen);364 $keys[$i] = (string) substr($key, $prefixLen); 365 365 } 366 366 } -
astrology/trunk/dependencies/vendor/symfony/options-resolver/OptionsResolver.php
r3173306 r3444561 980 980 { 981 981 if (\is_array($value) && '[]' === substr($type, -2)) { 982 $type = substr($type, 0, -2);982 $type = (string) substr($type, 0, -2); 983 983 $valid = \true; 984 984 foreach ($value as $val) { -
astrology/trunk/dependencies/vendor/symfony/var-exporter/Internal/Exporter.php
r3173306 r3444561 128 128 $c = \PHP_VERSION_ID >= 80100 && $reflector->hasProperty($n) && ($p = $reflector->getProperty($n))->isReadOnly() ? $p->class : 'stdClass'; 129 129 } elseif ('*' === $n[1]) { 130 $n = substr($n, 3);130 $n = (string) substr($n, 3); 131 131 $c = $reflector->getProperty($n)->class; 132 132 if ('Error' === $c) { … … 137 137 } else { 138 138 $i = strpos($n, "\x00", 2); 139 $c = substr($n, 1, $i - 1);140 $n = substr($n, 1 + $i);139 $c = (string) substr($n, 1, $i - 1); 140 $n = (string) substr($n, 1 + $i); 141 141 } 142 142 if (null !== $sleep) { … … 210 210 $m[1] = sprintf('\'."%s".\'', str_replace(["\x00", "\r", "\n", "", "", "", "", "", "", "", "", "", '\n\\'], ['\0', '\r', '\n', '\u{202A}', '\u{202B}', '\u{202D}', '\u{202E}', '\u{2066}', '\u{2067}', '\u{2068}', '\u{202C}', '\u{2069}', '\n"' . "\n" . $subIndent . '."\\'], $m[1])); 211 211 if ("'" === $m[2]) { 212 return substr($m[1], 0, -2);212 return (string) substr($m[1], 0, -2); 213 213 } 214 214 if ('n".\'' === substr($m[1], -4)) { … … 218 218 }, $code, -1, $count); 219 219 if ($count && strncmp($code, "''.", strlen("''.")) === 0) { 220 $code = substr($code, 3);220 $code = (string) substr($code, 3); 221 221 } 222 222 return $code; -
astrology/trunk/locale/en.php
r3378058 r3444561 303 303 'sun_chart' => 'Sun Chart', 304 304 'moon_chart' => 'Moon Chart', 305 'birth_time' => 'Birth Time', 305 306 ]; -
astrology/trunk/readme.txt
r3378058 r3444561 4 4 Requires at least: 5.6 5 5 Tested up to: 6.8 6 Stable tag: 1.4. 86 Stable tag: 1.4.9 7 7 Requires PHP: 7.2.0 8 8 License: GPLV2+ … … 252 252 == Changelog == 253 253 254 = 1.4.9 = 255 * Fixed array missing key 256 254 257 = 1.4.8 = 255 258 * Added new `display_planet_positions` shortcode for kundli -
astrology/trunk/src/vendor/autoload.php
r3378058 r3444561 20 20 require_once __DIR__ . '/composer/autoload_real.php'; 21 21 22 return ComposerAutoloaderInit 27cdb6d5d360fa861fae7c119020b116::getLoader();22 return ComposerAutoloaderInita2f6d3d622d2439354e6302d037051f8::getLoader(); -
astrology/trunk/src/vendor/composer/ClassLoader.php
r2952051 r3444561 499 499 $subPath = $class; 500 500 while (false !== $lastPos = strrpos($subPath, '\\')) { 501 $subPath = substr($subPath, 0, $lastPos);501 $subPath = (string) substr($subPath, 0, $lastPos); 502 502 $search = $subPath . '\\'; 503 503 if (isset($this->prefixDirsPsr4[$search])) { … … 523 523 // namespaced class name 524 524 $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) 525 . strtr( substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);525 . strtr((string) substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); 526 526 } else { 527 527 // PEAR-like class name -
astrology/trunk/src/vendor/composer/autoload_real.php
r3378058 r3444561 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 27cdb6d5d360fa861fae7c119020b1165 class ComposerAutoloaderInita2f6d3d622d2439354e6302d037051f8 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 27cdb6d5d360fa861fae7c119020b116', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInita2f6d3d622d2439354e6302d037051f8', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Prokerala_WP_Astrology_Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 27cdb6d5d360fa861fae7c119020b116', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInita2f6d3d622d2439354e6302d037051f8', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInit 27cdb6d5d360fa861fae7c119020b116::getInitializer($loader));30 call_user_func(\Prokerala_WP_Astrology_Composer\Autoload\ComposerStaticInita2f6d3d622d2439354e6302d037051f8::getInitializer($loader)); 31 31 32 32 $loader->setClassMapAuthoritative(true); -
astrology/trunk/src/vendor/composer/autoload_static.php
r3378058 r3444561 5 5 namespace Prokerala_WP_Astrology_Composer\Autoload; 6 6 7 class ComposerStaticInit 27cdb6d5d360fa861fae7c119020b1167 class ComposerStaticInita2f6d3d622d2439354e6302d037051f8 8 8 { 9 9 public static $classMap = array ( … … 48 48 { 49 49 return \Closure::bind(function () use ($loader) { 50 $loader->classMap = ComposerStaticInit 27cdb6d5d360fa861fae7c119020b116::$classMap;50 $loader->classMap = ComposerStaticInita2f6d3d622d2439354e6302d037051f8::$classMap; 51 51 52 52 }, null, ClassLoader::class);
Note: See TracChangeset
for help on using the changeset viewer.