Skip to content

Commit

Permalink
Add another missing deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 28, 2018
1 parent e78cb4a commit 25696ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Http/Response.php
Expand Up @@ -1365,6 +1365,10 @@ public function withCache($since, $time = '+1 day')
*/
public function sharable($public = null, $time = null)
{
deprecationWarning(
'Response::sharable() is deprecated. ' .
'Use withSharable() instead.'
);
if ($public === null) {
$public = array_key_exists('public', $this->_cacheDirectives);
$private = array_key_exists('private', $this->_cacheDirectives);
Expand Down

0 comments on commit 25696ad

Please sign in to comment.